How to get NSColorPanel's target?
How to get NSColorPanel's target?
- Subject: How to get NSColorPanel's target?
- From: Keith Renz <email@hidden>
- Date: Mon, 18 Aug 2003 23:37:05 -0400
I'm setting NSColorPanel's shared instance's target to a custom view
(no color well is being used). When I deallocate the view, I would like
to decouple it from the color panel if it is the color panel's target
by resetting the color panel's target and action to nil. I would like
to ask the color panel what its target is, but there's no method to do
so. I can get at the color panel's private _target instance variable
with key value coding ([colorPanel valueForKey:@"target"]), but this
isn't really kosher. Is there a better way to do this without manually
keeping track of the color panel's target?
Thanks,
Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.