• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Improving the User Experience for First Use of Downloadable Software
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Improving the User Experience for First Use of Downloadable Software
      • From: Charles Srstka <email@hidden>
    • Re: Improving the User Experience for First Use of Downloadable Software
      • From: Dave Carrigan <email@hidden>
  • Prev by Date: Re: NSButton and NSEvent
  • Next by Date: Re: Improving the User Experience for First Use of Downloadable Software
  • Previous by thread: Re: NSUndoManager for loaded documents
  • Next by thread: Re: Improving the User Experience for First Use of Downloadable Software
  • Index(es):
    • Date
    • Thread