• 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: steven Hooley <email@hidden>
  • Date: Sun, 19 Feb 2012 00:19:48 +0000

> That's exactly *why* I've been asking about it - so I can fix it (and explain the fix) for the new edition:

Sorry, I did not mean to imply 'many people have done it wrong because
of this book'. What i Failed at saying was "but.. I've seen this
pattern everywhere, even in Apple sample code, it can't be a bug!". I
thought this because i'd never seen the taskId declared as __block in
the sample code or docs.

Of course, i'd made an error not noticing that in the sample code/docs
the UIBackgroundTaskIdentifier is always an iVar and not realising
that this was critical to it's operation (and why i'd never seen it
declared __block).

I really appreciate you finding my bugs for me.
_______________________________________________

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


References: 
 >Re: __block __weak - am I doing this right? (From: steven Hooley <email@hidden>)

  • Prev by Date: Re: __block __weak - am I doing this right?
  • 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