• 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: Showing the shared NSColorPanel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing the shared NSColorPanel?


  • Subject: Re: Showing the shared NSColorPanel?
  • From: Chuck Pisula <email@hidden>
  • Date: Wed, 30 May 2001 08:36:40 -0700

I would just use this (declared in NSColorPanel.h):

@interface NSApplication(NSColorPanel)
- (void)orderFrontColorPanel:(id)sender;
@end

So, do: [[NSApplication sharedApplication] orderFrontColorPanel:nil]


Or with your situation: [cpanel orderFront:nil] should do...

-chuck

On Tuesday, May 29, 2001, at 09:04 PM, Jonah Petri wrote:

Anybody know how I can programmatically show the shared NSColorPanel? I can get at the shared instance easily, but I don't know what to do with it in order to display it on the screen...

Sorry for the newbie question, and thanks for the help...
--Jonah
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Showing the shared NSColorPanel? (From: Jonah Petri <email@hidden>)

  • Prev by Date: Re: BSD Cocoa GUI Examples - where?
  • Next by Date: Default Input Field - force NSTextEditField to stay firstResponder
  • Previous by thread: Showing the shared NSColorPanel?
  • Next by thread: Re: Drawer Behavior (Possible Solution)
  • Index(es):
    • Date
    • Thread