• 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: Imitating Behavior of a Sheet Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Imitating Behavior of a Sheet Window


  • Subject: Re: Imitating Behavior of a Sheet Window
  • From: Gregory Weston <email@hidden>
  • Date: Fri, 22 Jan 2010 22:06:14 -0500

Andy Lee wrote:

>> This works perfectly except for a single little problem. The title bar
>> of the parent window and its "traffic light" window buttons are grayed
>> our like if the parent window wasn't key window (which is true
>> though).
>>
>> However, when a "natural" sheet is showing, the title bar of the
>> parent window and the "traffic light" buttons are displayed normally,
>> as if the parent window was the key window, even though the key focus
>> is inside the sheet window.
>>
>> What is the trick I am missing that allows the natural sheet window to
>> behave like this?
>
> As a guess, I would try forcing the traffic light buttons to be enabled.  NSWindow's standardWindowButton: method would give you the buttons.  I'm uncomfortable enabling the close button when a window is displaying a document-modal sheet, but I'll leave that for people who are better at being HIG police to comment on.

It should be noted that a window's close button is not functional when a sheet is showing. That's one of the fairly simple implications of modality.
_______________________________________________

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

  • Prev by Date: Re: Imitating Behavior of a Sheet Window
  • Next by Date: Re: NSImage loads garbage every other time?!?
  • Previous by thread: Re: Imitating Behavior of a Sheet Window
  • Next by thread: View Handling
  • Index(es):
    • Date
    • Thread