Re: Custom NSCell and target/action

2010-11-20 Thread vincent habchi
Oops. Sorry for the few missing -s here and there and the last sentence that should read "so it should not be too intricate". Cheers Vincent___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Custom NSCell and target/action

2010-11-20 Thread vincent habchi
Hi Sean! > Do I remember correctly that you're trying to make a cell version of > NSColorWell, so that you can use it in a table? Yes, this (screenshot from my app) : <> > I tried that a few months ago, and got something basically working (with > Corbin's help), but never did get it working ve

Re: Custom NSCell and target/action

2010-11-20 Thread Sean McBride
vincent habchi (vi...@macports.org) on 2010-11-20 03:51 said: >> http://developer.apple.com/library/mac/#samplecode/AnimatedTableView/ >Introduction/Intro.html >> >> It will answer a lot of questions. > >I've done that. It is a nice example, but I think it is meant to people >that have already ti

Re: Custom NSCell and target/action

2010-11-20 Thread vincent habchi
Corbin: > You should just check out the example: > > http://developer.apple.com/library/mac/#samplecode/AnimatedTableView/Introduction/Intro.html > > It will answer a lot of questions. I've done that. It is a nice example, but I think it is meant to people that have already tinkered a bit with

Re: Custom NSCell and target/action

2010-11-19 Thread Corbin Dunn
On Nov 19, 2010, at 7:09 AM, Vincent Habchi wrote: > Le 19 nov. 2010 à 15:39, Graham Cox a écrit : > >> 1. Playing nice with the color panel requires a little care, because it's >> shared by not only any color wells in your app, but by any responders that >> implement -changeColor: > > You're

Re: Custom NSCell and target/action

2010-11-19 Thread Vincent Habchi
Le 19 nov. 2010 à 15:39, Graham Cox a écrit : > 1. Playing nice with the color panel requires a little care, because it's > shared by not only any color wells in your app, but by any responders that > implement -changeColor: You're right, I'll try to be cautious. > 2. A table column only has o

Re: Custom NSCell and target/action

2010-11-19 Thread Graham Cox
On 20/11/2010, at 1:17 AM, Vincent Habchi wrote: > Hi there, > > I'm beginning to figure out something but I'd like to have some (even terse) > comments. > > I have created a custom subclass of NSCell that duplicates the behavior of a > NSColorWell: It draws a small colored rectangle inside o