On Jan 16, 2013, at 2:05 PM, [email protected] wrote: > On 16 Jan 2013, at 20:47, Melvin Walker <[email protected]> wrote: > >> Is it possible to programmatically change color (using -setColor:) in >> NSColorPanel without it sending a changeColor: message to the first >> responder? >> >> We'd like it to just reflect a color change without telling the responder >> chain about it. >> > > see docs Choosing Colors With Color Wells and Color Panels > > When you select a color in the panel, NSColorPanel sends a changeColor: > message to the first responder. It also sends its action message (set by > setAction:) to its target object (set by setTarget:), provided that neither > the action nor the target is nil. NSColorPanel also sends its action to its > target whenever you select a color in the color panel.
Yes, and this is the behavior I want to avoid. I can turn off the send-to-target behavior easily enough, but I can't turn off the send-a-changeColor:-message behavior. -- Melvin Walker <[email protected]> _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
