How to get data to an overridden function (NSMatrix->NSCell)
How to get data to an overridden function (NSMatrix->NSCell)
- Subject: How to get data to an overridden function (NSMatrix->NSCell)
- From: Aaron Kobayashi <email@hidden>
- Date: Fri, 11 Aug 2006 09:13:43 -0500
Hi everyone,
I'm overriding
- (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView:(NSView
*)controlView
in a subclass of NSTextFieldCell which is contained in an NSMatrix to
change the highlight color. This works stupendously. With the
machinery in place, I need to find a way to pipe data in to the
routine to make a decision on the color to highlight with.
Essentially, I want to detect a mouse down on the matrix and store a
color. Until mouse up, I want the highlightColorWithFrame routine to
return the color picked in the mouse down routine. This seems like a
trivial thing to do, but I haven't been able to find a way to pipe
data into this method.
Any suggestions? Certainly other people have dealt with a similar
problem.
Thanks,
Aaron K.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden