Re: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit
Re: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit
- Subject: Re: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit
- From: Corbin Dunn <email@hidden>
- Date: Wed, 22 Apr 2009 11:16:47 -0700
On Apr 22, 2009, at 10:29 AM, Iceberg-Dev wrote:
On Apr 22, 2009, at 5:50 PM, Corbin Dunn wrote:
Howdy,
On Apr 22, 2009, at 4:37 AM, Iceberg-Dev wrote:
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;
}
Note that what you are doing is not an official way to make things
work in 32-bit. It is strongly discouraged to access the ivars to
AppKit classes, and what you are doing may break in the future.
Well, the future is already there. You can't do for 64-bit
applications what you can do for 32-bit ones.
It may break in future releases of your 32-bit applications too. We
may change how the ivar is used, or decide not to use it at all.
There is no way to replace the outlinecell
How could one then draw the disclosure triangle in white
Leopard has a bug with them looking too dark; that is a known issue,
and it will be fixed. There is no easy way to make them white, but in
the -willDisplayOutlineCell method you can replace the image on the
NSButtonCell.
(and correctly centered vertically) instead of black/dark gray (and
incorrectly centered)?
Override frameOfOutlineCellAtRow: and place it where you want.
-- please log a bug requesting the ability to do so.
Will do.
thanks!
corbin
_______________________________________________
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