Re: Improving the User Experience for First Use of Downloadable Software
Re: Improving the User Experience for First Use of Downloadable Software
- Subject: Re: Improving the User Experience for First Use of Downloadable Software
- From: Greg Guerin <email@hidden>
- Date: Sat, 27 Feb 2010 11:50:44 -0700
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 (email@hidden)
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:
This email sent to email@hidden