memset( p_intf->p_sys, 0, sizeof( *p_intf->p_sys ) );
p_intf->p_sys->o_pool = [[NSAutoreleasePool alloc] init];
-
+
/* Put Cocoa into multithread mode as soon as possible.
* http://developer.apple.com/techpubs/macosx/Cocoa/
* TasksAndConcepts/ProgrammingTopics/Multithreading/index.html
p_intf->b_play = VLC_TRUE;
p_intf->pf_run = Run;
- [[VLCApplication sharedApplication] autorelease];
+ [VLCApplication sharedApplication];
[NSApp setIntf: p_intf];
-
[NSBundle loadNibNamed: @"MainMenu" owner: NSApp];
return( 0 );
- (void)terminate:(id)sender
{
p_intf->p_vlc->b_die = VLC_TRUE;
+ [super terminate:sender];
}
o_msg_lock = nil;
}
+ [NSApp terminate: nil];
[NSApp stop: nil];
/* write cached user defaults to disk */