Re: Problem subclassing a NSCell in a NSTableView (solution)
Re: Problem subclassing a NSCell in a NSTableView (solution)
- Subject: Re: Problem subclassing a NSCell in a NSTableView (solution)
- From: Alexander Lamb <email@hidden>
- Date: Wed, 31 May 2006 15:37:04 +0200
Hello,
Surfing a bit I found the simplest way to avoid highlighting of the
cells of a table view was to subclass the table view and implement:
- (id)_highlightColorForCell:(NSCell *)cell
{
return nil;
}
Now, obviously, this looks like a private method:-) But until someone
has a wonderfull and documented way of handling this problem, that's
how I will do it!
Thanks,
Alex
--
Alexander Lamb
email@hidden
On May 31, 2006, at 2:28 PM, Alexander Lamb wrote:
Actually, the subclass is created but the following method is never
called:
- (void)highlight:(BOOL)flag withFrame:(NSRect)cellFrame inView:
(NSView *)controlView
{
[super highlight:NO withFrame:cellFrame inView:controlView];
}
I was hoping to override it as seen here to stop the cells
highlighting.
--
Alexander Lamb
email@hidden
On May 31, 2006, at 1:28 PM, Alexander Lamb wrote:
Hello,
Using an NSTableView and dragging from the IB Palette a
NSTextFieldCell, I hoped I would be able to sublass it (Custom
Class).
Although I created the class and implemented one or two methods...
they are never called. The column also uses a binding to a
controller (if this has anything to do with it).
Anyhint why I couldn't use a subclass?
Thanks,
Alex
--
Alexander Lamb
email@hidden
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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