completion handlers?
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