• 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
NSColorPanel as sheet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorPanel as sheet?


  • Subject: NSColorPanel as sheet?
  • From: John Stiles <email@hidden>
  • Date: Mon, 17 Dec 2007 11:41:41 -0800

I have an app where it would makes a whole lot of sense to show the NSColorPanel as a sheet on a window. There is really no good way to make it work as a floater.

I actually implemented this and it works great except for one minor flaw—if you drag the empty space in the toolbar at the top of the window, the color panel moves! (This is on Leopard where toolbars are always part of window titlebars.) I tried to negate this by calling

   [panel setMovableByWindowBackground:NO];

but this did not have any effect. I briefly looked for a way to make windows completely immobile, and couldn't find it. (Although I am fairly positive that the window server can do this...)

At first I thought that I could kludge around this by implementing the delegate methods -windowWillMove and -windowDidMove, and moving the window back to where it was, but I am pretty sure this will flicker, and it also makes me concerned that I could be headed down a path of ugliness and bad news in general. Has anyone experimented with this before? Is this just forbidden territory?


_______________________________________________

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


  • Follow-Ups:
    • Re: NSColorPanel as sheet?
      • From: Jayson Adams <email@hidden>
  • Prev by Date: Re: How to implement an "Accordion" view?
  • Next by Date: Making custom key-commands
  • Previous by thread: Re: MyRecorder example - compressing video
  • Next by thread: Re: NSColorPanel as sheet?
  • Index(es):
    • Date
    • Thread