How to associate a view with Color Panel
How to associate a view with Color Panel
- Subject: How to associate a view with Color Panel
- From: Fei Li <email@hidden>
- Date: Wed, 3 Nov 2004 11:51:42 -0700
Hello all,
I know these are simple questions but I really can't figure it out.
I opened a NSColorPanel by click on a normal button. I have a customer
view to show a sample line in it. I hope it's drew in the color picked
in the color panel. I know the changeColor function can do this but I
don't know how to connect it to the color panel, even I set
[[NSColorPanel sharedColorPanel] setDelegate:self] in that customer
view, it still doesn't work.
Another problem is I can't close the color panel. I click on the red
button on the color panel, nothing happened, the color panel doesn't go
away. I guess I must miss something.
Thanks for any information to help me out!
Fei
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden