• 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: Charles Jenkins <email@hidden>
  • Date: Tue, 10 Feb 2015 07:47:07 -0500

Thank you all very much. You know, I started this attempt by typing "[settings beginSheet" because I assumed all windows/windowControllers acted like savePanel, but XCode didn't give any code-completion suggestions for that. Then when I did some documentation research, I read that SavePanel's beginSheetModalForWindow:completionHandler: was a convenience method that really called NSApp's method. So I switched to NSApp. (Thanks for the modernization info about [NSApplication sharedApplication], Quincey!)

In retrospect it's obvious I went down a bad path because (a) I tried to use the window controller as a window: my original statement should have begun with "[settings.window beginSheet", which would have netted the code-completion assistance I was expecting; and (b) when I researched alternatives, I found out-of-date documentation.

I appreciate you guys putting me right.

-- 

Charles
_______________________________________________

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>)
 >Re: Running window as a sheet (From: Ken Thomases <email@hidden>)
 >Re: Running window as a sheet (From: Quincey Morris <email@hidden>)

  • Prev by Date: Disable Text Replacement
  • Next by Date: Re: NSBezierPath + thin lines + antialias = :(
  • Previous by thread: Re: Running window as a sheet
  • Next by thread: Xcode 5.1 is crashing in 10.8.5
  • Index(es):
    • Date
    • Thread