• 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: 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


  • Follow-Ups:
    • Re: NSOutlineView space next to disclosure triangle
      • From: Jerry Krinock <email@hidden>
References: 
 >Re: NSOutlineView space next to disclosure triangle (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSOutlineView space next to disclosure triangle
  • Next by Date: Re: remote proxy object somehow not correct
  • Previous by thread: Re: NSOutlineView space next to disclosure triangle
  • Next by thread: Re: NSOutlineView space next to disclosure triangle
  • Index(es):
    • Date
    • Thread