• 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: Document being reopened on launch during modal dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document being reopened on launch during modal dialog


  • Subject: Re: Document being reopened on launch during modal dialog
  • From: Greg Parker <email@hidden>
  • Date: Thu, 08 May 2014 17:26:51 -0700

On May 7, 2014, at 6:11 PM, Graham Cox <email@hidden> wrote:
> On 8 May 2014, at 10:39 am, Kyle Sluder <email@hidden> wrote:
>> Wait, why do you suspect this? Unless I missed something, there’s no guarantee, ARC or not, that a receiver will survive through a method invocation.
>
> How else could it work? -performSelector must hang on to the receiver at least until the method invocation, so any release must come afterwards, or an autorelease beforehand which means the release itself will be afterwards. If it was otherwise -performSelector would be crashing continually, which is not the behaviour observed.

Ordinary -performSelector: retains nothing. Other asynchronous variants like -performSelectorOnMainThread:… and -performSelector:…waitUntilDone:NO retain the receiver and the arguments.


--
Greg Parker     email@hidden     Runtime Wrangler



_______________________________________________

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: Document being reopened on launch during modal dialog
      • From: Graham Cox <email@hidden>
References: 
 >Document being reopened on launch during modal dialog (From: "Mills, Steve" <email@hidden>)
 >Re: Document being reopened on launch during modal dialog (From: Lee Ann Rucker <email@hidden>)
 >Re: Document being reopened on launch during modal dialog (From: Quincey Morris <email@hidden>)
 >Re: Document being reopened on launch during modal dialog (From: Graham Cox <email@hidden>)
 >Re: Document being reopened on launch during modal dialog (From: "Mills, Steve" <email@hidden>)
 >Re: Document being reopened on launch during modal dialog (From: Quincey Morris <email@hidden>)
 >Re: Document being reopened on launch during modal dialog (From: Kyle Sluder <email@hidden>)
 >Re: Document being reopened on launch during modal dialog (From: Graham Cox <email@hidden>)

  • Prev by Date: Zombie NSWindow
  • Next by Date: Re: Document being reopened on launch during modal dialog
  • Previous by thread: Re: Document being reopened on launch during modal dialog
  • Next by thread: Re: Document being reopened on launch during modal dialog
  • Index(es):
    • Date
    • Thread