• 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 - How to hide disclosure triangle for root nodes ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView - How to hide disclosure triangle for root nodes ?


  • Subject: Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 25 Nov 2009 18:00:34 +0100

Le 25 nov. 2009 à 17:49, Mario Kušnjer a écrit :

>
> On 2009.11.25, at 17:20, Jens Alfke wrote:
>
>>
>> On Nov 25, 2009, at 5:49 AM, Mario Kušnjer wrote:
>>
>>> How to hide the disclosure triangle in front of the Root object and remove indentation for it, and just that object (and later if there is more Root objects for them too) ?
>>
>> I think what you're looking for is the delegate method
>> - (BOOL)outlineView:(NSOutlineView *)outlineView isGroupItem:(id)item;
>>
>> —Jens
>
>
> Actually no, because that delegate method is implemented and it doesn't hide disclosure triangle and removes indentation (actually it makes indentation slightly different),
> but draws font and cell (depending on which highlight style used) differently to make them look like header or title (group) for rows that come under its tree.


NSOutlineView delegate:

outlineView:shouldShowOutlineCellForItem:

Returns a whether the specified item should display the outline cell (the disclosure triangle).

And if it's not enough, you can subclass NSOutlineView and override -[NSOutlineView frameOfOutlineCellAtRow:] to returns NSZeroRect.


-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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 - How to hide disclosure triangle for root nodes ?
      • From: Mario Kušnjer <email@hidden>
    • Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
      • From: Mario Kušnjer <email@hidden>
References: 
 >NSOutlineView - How to hide disclosure triangle for root nodes ? (From: Mario Kušnjer <email@hidden>)
 >Re: NSOutlineView - How to hide disclosure triangle for root nodes ? (From: Jens Alfke <email@hidden>)
 >Re: NSOutlineView - How to hide disclosure triangle for root nodes ? (From: Mario Kušnjer <email@hidden>)

  • Prev by Date: Re: Re: URLWithString fails to fails with bad string
  • Next by Date: Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
  • Previous by thread: Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
  • Next by thread: Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
  • Index(es):
    • Date
    • Thread