* intf_controller.h: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: intf_controller.h,v 1.7 2002/05/18 13:33:44 massiot Exp $
+ * $Id: intf_controller.h,v 1.8 2002/05/20 05:20:12 jlj Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
*
/* Initialization & Event-Management */
- (void)awakeFromNib;
-- (void)applicationDidFinishLaunching:(NSNotification *)o_notification;
- (void)manage;
- (void)terminate;
+/* NSApplication messages */
+- (void)applicationWillFinishLaunching:(NSNotification *)o_notification;
+- (BOOL)application:(NSApplication *)o_app openFile:(NSString *)o_filename;
+
/* Functions atteched to user interface */
- (IBAction)pause:(id)sender;
- (IBAction)play:(id)sender;
* intf_controller.c: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: intf_controller.m,v 1.3 2002/05/19 23:51:37 massiot Exp $
+ * $Id: intf_controller.m,v 1.4 2002/05/20 05:20:12 jlj Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
[o_window setTitle: pTitle];
}
-- (void)applicationDidFinishLaunching:(NSNotification *)o_notification
-{
- o_intf = [[Intf_VLCWrapper instance] retain];
- o_vout = [[Vout_VLCWrapper instance] retain];
-
- f_slider = f_slider_old = 0.0;
- o_slider_lock = [[NSLock alloc] init];
-
- [NSThread detachNewThreadSelector: @selector(manage)
- toTarget: self withObject: nil];
-}
-
- (void)manage
{
NSDate *sleepDate;
[NSApp postEvent: pEvent atStart: YES];
}
+/* NSApplication messages */
+
+- (void)applicationWillFinishLaunching:(NSNotification *)o_notification
+{
+ o_intf = [[Intf_VLCWrapper instance] retain];
+ o_vout = [[Vout_VLCWrapper instance] retain];
+
+ f_slider = f_slider_old = 0.0;
+ o_slider_lock = [[NSLock alloc] init];
+
+ [NSThread detachNewThreadSelector: @selector(manage)
+ toTarget: self withObject: nil];
+}
+
+- (BOOL)application:(NSApplication *)o_app openFile:(NSString *)o_filename
+{
+ NSArray *o_array;
+
+ o_array = [NSArray arrayWithObject: o_filename];
+ [o_intf openFiles: o_array];
+
+ return( TRUE );
+}
+
/* Functions attached to user interface */
- (IBAction)pause:(id)sender