On Feb 26, 2010, at 3:19 PM, Matthew Lindfield Seager wrote:
> An additional step to avoid annoying these people might be to only
> order your app to the front if it's the first time it has been
> launched...? ($0.02)
Ah, good point. So a better solution would be:
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
if([def boolForKey:@“MyAppHasAlreadyBeenLaunched”]) {
[NSApp activateIgnoringOtherApps:YES];
}
[def setBool:YES forKey:@“MyAppHasAlreadyBeenLaunched”];
Charles_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]