Re: Changing color in NSColorPanel without message

2013-01-17 Thread Graham Cox
On 18/01/2013, at 11:13 AM, Andy Lee wrote: > The OP actually wants to *suppress* changing of color. But good to know. Yep, I misremembered - helps to actually re-read the OPs message before commenting... :| However, it does incidentally solve that problem, in most cases, because the messag

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Andy Lee
On Jan 17, 2013, at 6:44 PM, Graham Cox wrote: > > On 18/01/2013, at 9:19 AM, Andy Lee wrote: > >> o at least for color wells, changeColor: isn't the mechanism causing them to >> change color when you set the color panel's color. I would think they must >> be listening for the notification --

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Graham Cox
On 18/01/2013, at 9:19 AM, Andy Lee wrote: > o at least for color wells, changeColor: isn't the mechanism causing them to > change color when you set the color panel's color. I would think they must be > listening for the notification -- but I tried telling the color well to stop > observing

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Andy Lee
On Jan 17, 2013, at 5:47 PM, Ken Thomases wrote: > On Jan 17, 2013, at 4:19 PM, Andy Lee wrote: > >> On Jan 17, 2013, at 4:45 PM, Andy Lee wrote: >> >>> On Jan 17, 2013, at 2:53 PM, Ken Thomases wrote: >>> On Jan 16, 2013, at 2:47 PM, Melvin Walker wrote: > Is it possible to

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Ken Thomases
On Jan 17, 2013, at 4:19 PM, Andy Lee wrote: > On Jan 17, 2013, at 4:45 PM, Andy Lee wrote: > >> On Jan 17, 2013, at 2:53 PM, Ken Thomases wrote: >> >>> On Jan 16, 2013, at 2:47 PM, Melvin Walker wrote: >>> Is it possible to programmatically change color (using -setColor:) in NSCol

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Andy Lee
On Jan 17, 2013, at 2:53 PM, Ken Thomases wrote: > On Jan 16, 2013, at 2:47 PM, Melvin Walker 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 refle

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Andy Lee
On Jan 17, 2013, at 4:45 PM, Andy Lee wrote: > On Jan 17, 2013, at 2:53 PM, Ken Thomases wrote: > >> On Jan 16, 2013, at 2:47 PM, Melvin Walker wrote: >> >>> Is it possible to programmatically change color (using -setColor:) in >>> NSColorPanel without it sending a changeColor: message to th

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Andy Lee
On Jan 17, 2013, at 2:53 PM, Ken Thomases wrote: > On Jan 16, 2013, at 2:47 PM, Melvin Walker 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 refle

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Ken Thomases
On Jan 16, 2013, at 2:47 PM, Melvin Walker 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

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Andy Lee
On Jan 17, 2013, at 3:30 AM, Andy Lee wrote: > One thing I didn't test was whether this was due to changeColor: being sent > or due to the color well responding to the notification, Actually this doesn't matter since notifications are sent synchronously. *But* I couldn't resist poking around s

Re: Changing color in NSColorPanel without message

2013-01-17 Thread Andy Lee
On Jan 17, 2013, at 2:23 AM, "jonat...@mugginsoft.com" wrote: > The refactor could be fairly simple. > A category method on NSColorPanel could be used to insert a filter into the > responder chain as and when required before displaying the panel. > The filter could then divert the change reques

Re: Changing color in NSColorPanel without message

2013-01-17 Thread jonat...@mugginsoft.com
On 17 Jan 2013, at 00:58, Melvin Walker wrote: > On Jan 16, 2013, at 4:45 PM, Andy Lee wrote: >> On Jan 16, 2013, at 6:09 PM, Melvin Walker wrote: >> [...] When you select a color in the panel, NSColorPanel sends a changeColor: message to the first responder. It also sends its actio

Re: Changing color in NSColorPanel without message

2013-01-17 Thread jonat...@mugginsoft.com
On 17 Jan 2013, at 00:58, Melvin Walker wrote: > On Jan 16, 2013, at 4:45 PM, Andy Lee wrote: >> On Jan 16, 2013, at 6:09 PM, Melvin Walker wrote: >> [...] When you select a color in the panel, NSColorPanel sends a changeColor: message to the first responder. It also sends its actio

Re: Changing color in NSColorPanel without message

2013-01-16 Thread Melvin Walker
On Jan 16, 2013, at 4:45 PM, Andy Lee wrote: > On Jan 16, 2013, at 6:09 PM, Melvin Walker wrote: > [...] >>> 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

Re: Changing color in NSColorPanel without message

2013-01-16 Thread Andy Lee
On Jan 16, 2013, at 6:09 PM, Melvin Walker wrote: [...] >> 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 ac

Re: Changing color in NSColorPanel without message

2013-01-16 Thread Melvin Walker
On Jan 16, 2013, at 2:05 PM, cocoa-dev-requ...@lists.apple.com wrote: > On 16 Jan 2013, at 20:47, Melvin Walker 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

Re: Changing color in NSColorPanel without message

2013-01-16 Thread jonat...@mugginsoft.com
On 16 Jan 2013, at 20:47, Melvin Walker 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

Changing color in NSColorPanel without message

2013-01-16 Thread Melvin Walker
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. -- Melvin Walker