• 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: Blocks and Methods...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Blocks and Methods...


  • Subject: Re: Blocks and Methods...
  • From: R <email@hidden>
  • Date: Sat, 28 Jan 2012 08:40:13 -0800 (PST)

I originally chose to hold the block in an array, but that failed.
I'm still confused over that...


On Jan 28, 7:02 am, Mike Abdullah <email@hidden> wrote:
> On 28 Jan 2012, at 05:32, R wrote:
>
> > I'm writing code in for iOS 5....
>
> > Ok, in my async com class, I'm receiving a block in one method and
> > want to execute it in the another method.  I've concluded that I need
> > to place the block in a property.  The only way that has worked is via
> > copy.
>
> > Is this the conventional way to save a block?
>
> Yes, blocks start out life on the stack. You have to copy them if the block is needed to be executed later.
>
> _______________________________________________
>
> 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
>
>
> This email sent to email@hidden

_______________________________________________

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: Blocks and Methods...
      • From: Ken Thomases <email@hidden>
References: 
 >Blocks and Methods... (From: R <email@hidden>)
 >Re: Blocks and Methods... (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Recently Opened in Doc
  • Next by Date: Re: Recently Opened in Doc
  • Previous by thread: Re: Blocks and Methods...
  • Next by thread: Re: Blocks and Methods...
  • Index(es):
    • Date
    • Thread