• 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: Running window as a sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running window as a sheet


  • Subject: Re: Running window as a sheet
  • From: Roland King <email@hidden>
  • Date: Tue, 10 Feb 2015 11:19:53 +0800

> On 10 Feb 2015, at 11:08, Charles Jenkins <email@hidden> wrote:
>
>
> So I have a window that now works fine as a modal window, but because I don’t like where it appears on the screen, I’m attempting to run it as a sheet instead. My Cocoa books and the NSWindow documentation seem to suggest that any window can be run as a sheet, and they along with XCode’s code-completion suggestions guided me to create this code:
>
>

….

>
> 2015-02-09 21:39:40.378 MyApp[5572:1677308] An uncaught exception was raised
> 2015-02-09 21:39:40.378 MyApp[5572:1677308] -[NSApplication beginSheetModalForWindow:completionHandler:]: unrecognized selector sent to instance 0x6000001001b0
>
> Looks to me like beginSheetModalForWindow:completionHandler: is the modern API, so why would it be unrecognized? Is there a better way I should be doing this?


begineSheetModalForWindow:completionHandler: isn’t an NSApplication method which is why you get the unrecognized selector message telling you you sent it to an NSApplication instance.
_______________________________________________

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


References: 
 >Running window as a sheet (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Running window as a sheet
  • Next by Date: Re: Running window as a sheet
  • Previous by thread: Running window as a sheet
  • Next by thread: Re: Running window as a sheet
  • Index(es):
    • Date
    • Thread