• 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: Stefan Heukamp <email@hidden>
  • Date: Tue, 03 Apr 2007 18:03:03 +0200

Hi,

I know this thread is some weeks old but I had the same proplem and it helped me too.
But there is one thing left that I don't get working. My OutlineView is editable and when I start editing a cell, the icon is visible anymore because the fieldeditor is in front of it.


I overrode the
- (NSText *)setUpFieldEditorAttributes:(NSText *)textObj
to move the fieleditor by some pixels to the right. But that does not work since the frame of the textObj (Instance of NSTextView) is even after the call to the super class not positioned (Frame = {{0.00, 0.00}, {0.00, 14.00}}) and when I set those values they are overwritten of course.


Could you give me a hint on how to handle this?

Stefan Heukamp

Am 18.01.2007 um 00:11 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.



_______________________________________________

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



_______________________________________________

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>
  • Prev by Date: Re: Keyboard Loop in Programmatically Created Window
  • Next by Date: MouseUp in OutlineView
  • Previous by thread: Re: Keyboard Loop in Programmatically Created Window
  • Next by thread: Re: NSOutlineView space next to disclosure triangle
  • Index(es):
    • Date
    • Thread