• 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: Documents not opening from Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Documents not opening from Finder


  • Subject: Re: Documents not opening from Finder
  • From: Graham Cox <email@hidden>
  • Date: Sun, 03 Mar 2013 12:11:23 +1100

On 03/03/2013, at 11:05 AM, Quincey Morris <email@hidden> wrote:

> The other gotcha is that NSInvocation doesn't take ownership of any objects referred to by its arguments. That means being very careful when using ARC, since it can't memory-manage them for you.


Unless you send -retainArguments to it, in which case it, well, does what it says on the tin.

What's a bit annoying is that this retains the target as well, so if you want arguments retained but not the target (e.g. in an Undo scenario), you have to do a bit of a dance to workaround it.

--Graham


_______________________________________________

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: Documents not opening from Finder
      • From: Quincey Morris <email@hidden>
References: 
 >Re: Documents not opening from Finder (From: Steve Mills <email@hidden>)
 >Re: Documents not opening from Finder (From: Quincey Morris <email@hidden>)
 >Re: Documents not opening from Finder (From: Steve Mills <email@hidden>)
 >Re: Documents not opening from Finder (From: Quincey Morris <email@hidden>)
 >Re: Documents not opening from Finder (From: Steve Mills <email@hidden>)
 >Re: Documents not opening from Finder (From: Kyle Sluder <email@hidden>)
 >Re: Documents not opening from Finder (From: "Mills, Steve" <email@hidden>)
 >Re: Documents not opening from Finder (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: More IB constraints woes
  • Next by Date: Re: Documents not opening from Finder
  • Previous by thread: Re: Documents not opening from Finder
  • Next by thread: Re: Documents not opening from Finder
  • Index(es):
    • Date
    • Thread