Re: Showing the shared NSColorPanel?
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