Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
is it possible to set the size of the NSColorPanel, pull down the swatches drawer and hide the toolbar all set to the app's defaults? i'd like to set it's default to the 2nd image...the 1st image is what the color panel looks like by default.
 

Attachments

  • Picture 1.png
    Picture 1.png
    40.3 KB · Views: 75
  • Picture 2.png
    Picture 2.png
    61.5 KB · Views: 72

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
I think you can, but it's up to you as the developer to manage it yourself: NSColourPanel won't save/restore for you. If you check the state every time the picker is closed via the normal NSWindow methods for size/position (-frame:), toolbar visibility (-visible:) and the mode of the NSColourPanel (-mode:) you can save these to defaults. Whenever you create a new NSColourPanel simply use the correct methods to reset the panel to the defaults...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.