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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to