• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView space next to disclosure triangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSOutlineView space next to disclosure triangle
      • From: Dominik Pich <email@hidden>
References: 
 >NSOutlineView space next to disclosure triangle (From: Mitchell Livingston <email@hidden>)

  • Prev by Date: Re: Preventing NSSlider bar from drawing
  • Next by Date: Re: NSOutlineView space next to disclosure triangle
  • Previous by thread: NSOutlineView space next to disclosure triangle
  • Next by thread: Re: NSOutlineView space next to disclosure triangle
  • Index(es):
    • Date
    • Thread