Corbin Dunn
Redwood Monkey

[NSColorPanel isContinuous] and [NSColorWell isContinuous]

Apple, Cocoa, General

A quick comment about these two properties: [NSColorPanel isContinuous] and [NSColorWell isContinuous].

Generally, you want these two things to be in sync. Whenever the color changes in the NSColorPanel, the color in the NSColorWell will update. However, the action in the NSColorWell will sometimes not be sent, since it isn’t the thing controlling the mouse. If you set isContinuous to NO on an NSColorWell, but do not call [[NSColorPanel sharedColorPanel] setContinuous:NO], then the color panel is going to keep sending messages to the color well, but the action will never be sent!

The bottom line: make the two properties match!

Previous Post
no_thumbnail
Xcode shortcuts to finding a file.
Next Post
no_thumbnail
Tree Habitat (another treehouse!)

Leave a Reply

avatar
500
  Subscribe  
Notify of

(c) 2008-2018 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

63 queries. 0.349 seconds.

Log in