Re: NSOutlineView space next to disclosure triangle
Re: NSOutlineView space next to disclosure triangle
- Subject: Re: NSOutlineView space next to disclosure triangle
- From: Dominik Pich <email@hidden>
- Date: Thu, 18 Jan 2007 00:48:26 +0100
Am Jan 18, 2007 um 12:11 AM schrieb Jerry Krinock:
on 07/01/17 12:35, Mitchell Livingston at email@hidden wrote:
I am using an NSOutlineView with NSBrowserCell to display a folder
hierarchy. My problem is that the disclosure triangle is directly
next to the image in the column, but I want a tiny amount of spacing
between the triangle and the image. I am not sure how to do this, so
any help would be appreciated.
I've done this with an NSTextFieldCell. I subclassed it and over-
rode the
-drawWithFrame method to draw icon and text, in two separate
rects. Since
NSBrowserCell is a subclass of NSCell too, this should work for you.
When doing that, also override trackForMouse or what it is called.
Since you must forward mouse clicks to the triangle button when the
modified rect has been clicked.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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