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: Jean-Daniel Dupas <email@hidden>
- Date: Sat, 25 Apr 2009 17:51:34 +0200
Le 25 avr. 09 à 15:12, Iceberg-Dev a écrit :
On Apr 22, 2009, at 8:16 PM, Corbin Dunn wrote:
[...]
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.
Your solution works. Thanks.
The only issues I have with it are:
- independence of resolution lost: By using code, I was able to have
independence of resolution through bezier path. By changing the
images, I'm stuck with fixed size image. I don't have Illustrator to
create a PDF version of the triangles.
No need to have illustrator.
Create a CGPDFContext.
Draw the triangle in it.
Save the resulting PDF.
You can also use a free vectorial editor (like Inkscape - http://www.inkscape.org/
).
- feedback is not perfect: The non highlighted images can be
changed. The highlighted state can not be changed or tuned.
But since it now builds and runs in 64-bit, I can't really complain.
_______________________________________________
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
_______________________________________________
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