• 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
completion handlers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

completion handlers?


  • Subject: completion handlers?
  • From: Todd Heberlein <email@hidden>
  • Date: Sun, 06 Sep 2009 12:56:28 -0700

It seems that the way I previously used an NSSavePanel has been deprecated. :(

The new approach seems to use an approach (a function definition embedded in the message) that I am not familiar with (I hear ghosts of lambda notation whispering into my ear). I assume this is an Objective C 2.0 feature, but I am not even sure of the name for this approach.

I would like to look up information on this approach, but I don't even know a name for it in order to google it. Could someone give me a pointer for pages or keywords?

Thanks,

Todd


[savePanel beginSheetModalForWindow:window completionHandler:^ (NSInteger result) {
if (result) {
NSLog(@"Save as: %@", savePanel.URL);
}
}];
_______________________________________________


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: completion handlers?
      • From: Jens Alfke <email@hidden>
    • Re: completion handlers?
      • From: Todd Heberlein <email@hidden>
    • Re: completion handlers?
      • From: Steven Degutis <email@hidden>
    • Re: completion handlers?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSDivideRect and 64-bit
  • Next by Date: Re: completion handlers?
  • Previous by thread: Re: NSDivideRect and 64-bit
  • Next by thread: Re: completion handlers?
  • Index(es):
    • Date
    • Thread