Charles Srstka wrote:
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”];
That won't work properly if the user replaces the current
unquarantined version of your app with a newly downloaded version.
Since you know it's the quarantined attribute that's triggering the
problem, why not just check for that attribute's presence on your app?
It's a normal extended attribute. You can discover its name using
the 'xattr' command in Terminal. (Note: I have not tried this, it
just seems like the obvious thing: test the same thing Finder is
testing.)
-- GG
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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 arch...@mail-archive.com