• 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: __block __weak - am I doing this right?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __block __weak - am I doing this right?


  • Subject: Re: __block __weak - am I doing this right?
  • From: Greg Parker <email@hidden>
  • Date: Thu, 16 Feb 2012 12:45:55 -0800

On Feb 16, 2012, at 12:42 PM, Matt Neuburg <email@hidden> wrote:
> On Feb 16, 2012, at 12:05 PM, Greg Parker wrote:
>>
>> The question is, who retains the observer? The __block __weak variable does not, because it's weak. NSNotificationCenter does not, as I understand it.
>
> It does, actually; thanks for pressing me on this point.

The NSNotificationCenter documentation says:
"Important: The notification center does not retain its observers…"

So something is still not right here.


--
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: __block __weak - am I doing this right?
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: __block __weak - am I doing this right? (From: Matt Neuburg <email@hidden>)
 >Re: __block __weak - am I doing this right? (From: Greg Parker <email@hidden>)
 >Re: __block __weak - am I doing this right? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: receptionist pattern question: NSOperationQueue vs. GCD
  • Next by Date: Re: __block __weak - am I doing this right?
  • Previous by thread: Re: __block __weak - am I doing this right?
  • Next by thread: Re: __block __weak - am I doing this right?
  • Index(es):
    • Date
    • Thread