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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to