Re: NSOutlineView space next to disclosure triangle
Re: NSOutlineView space next to disclosure triangle
- Subject: Re: NSOutlineView space next to disclosure triangle
- From: Jerry Krinock <email@hidden>
- Date: Wed, 17 Jan 2007 15:11:37 -0800
- Thread-topic: NSOutlineView space next to disclosure triangle
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.
_______________________________________________
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