Re: Running window as a sheet
Re: Running window as a sheet
- Subject: Re: Running window as a sheet
- From: Quincey Morris <email@hidden>
- Date: Tue, 10 Feb 2015 03:32:34 +0000
On Feb 9, 2015, at 19:24 , Ken Thomases <email@hidden> wrote:
>
> -beginSheetModalForWindow:completionHandler: is a method on NSAlert and NSSavePanel.
And the last detail:
Xcode let you compile it where you did because ‘NSApp’ happens to be declared as ‘id’ for inscrutable historical reasons, so the compiler’s normal type checking was disabled. I’d recommend you train yourself to use [NSApplication sharedApplication] instead.
_______________________________________________
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