[NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit
[NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit
- Subject: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit
- From: Iceberg-Dev <email@hidden>
- Date: Wed, 22 Apr 2009 13:37:03 +0200
What's the official way to replace _outlineCell and
_trackingOutlineCell in Cocoa 64-bit?
I do this for 32-bit:
@implementation NSOutlineView (PrivateCells)
- (NSButtonCell *) outlineCell
{
return _outlineCell;
}
- (void) setOutlineCell:(NSButtonCell *) inButtonCell
{
if (_outlineCell!=inButtonCell)
{
[_outlineCell release];
_outlineCell=[inButtonCell retain];
}
}
- (NSButtonCell *) trackingOutlineCell
{
return _trackingOutlineCell;
}
- (void) setTrackingOutlineCell:(NSButtonCell *) inButtonCell
{
if (_trackingOutlineCell!=inButtonCell)
{
[_trackingOutlineCell release];
_trackingOutlineCell=[inButtonCell retain];
}
}
@end
But 64-bit is not happy with it at all.
-----------
I need to replace among other things the drawWithFrame:inView: method
to get a different rendering.
- (void)outlineView:(NSOutlineView *)outlineView
willDisplayOutlineCell:(id)cell forTableColumn:(NSTableColumn *)
tableColumn item:(id)item; is probably not what I'm looking for.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden