FROM : Fei Li
DATE : Wed Nov 03 19:51:42 2004
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
DATE : Wed Nov 03 19:51:42 2004
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
| Related mails | Author | Date |
|---|---|---|
| Fei Li | Nov 3, 19:51 | |
| Todd Yandell | Nov 4, 20:50 | |
| M. Uli Kusterer | Nov 5, 02:11 |






Cocoa mail archive

