简体   繁体   中英

applicationDidFinishLaunching - not triggering

Here is my code:

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    NSRunAlertPanel(@"", @"", @"", @"", @"");
}

I have this, just to test it out, and for some reason, the NSRunAlertPanel is not triggering after the app starts...this is a problem because there are many "init" things that are necessary for my app to run.

Are there any other ways of doing this? why is this happening?

Found this comment on antoher forum about this:

Are you sure applicationDidFinishLaunching runs? Ie did you actually connect your app delegate object to the delegate outlet of File's Owner (or Application)?

Also found another forum posting where the author just did a clean to clear out old artifacts and it started to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM