• 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: Trying to change nsoutline disclosure triangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to change nsoutline disclosure triangle


  • Subject: Re: Trying to change nsoutline disclosure triangle
  • From: Guillaume Gandreau <email@hidden>
  • Date: Sat, 14 Jan 2006 08:28:55 +0100

Hi,
I'm not sure of what you want.
Children under your root have children themselves ?

If not, you don't have disclosure triangle.

So it's in the datasource method "- (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item" that you must say if Root Item ok, else not ok.

Hope this helps.
Guillaume

Le 14 janv. 06 à 04:09, Keith Pritchard a écrit :

I have an NSOutlineView in which I'd like disclosure triangles only on the root item.
So, in the willDisplayOutlineCell delegate I'm testing to see if the item is a root node and if it's not then don't display the triangle.


Code below.... I get the NSLog output, so the delegate is being called but the triangle is present on root and children. I thought I could modify the cell to be NSNoImage or NullCell and it would be result in a blank cell where the triangle was but nope.

Any ideas?? :/


-(void)outlineView:(NSOutlineView *)outlineView willDisplayOutlineCell:(id)cell forTableColumn:(NSTableColumn *) tableColumn item:(id)item
{
if ([[item objectForKey:@"rootItem"] isEqual:@"n"])
{
[cell setImage:NSNullCellType];
[cell setAlternateImage:NSNullCellType];
NSLog(@"Not a Root Item so draw noimage");
}
}



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40free.fr


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Trying to change nsoutline disclosure triangle
      • From: Keith Pritchard <email@hidden>
References: 
 >Trying to change nsoutline disclosure triangle (From: Keith Pritchard <email@hidden>)

  • Prev by Date: Re: Another newbie EXC_BAD_ACCESS in C
  • Next by Date: Re: Endian-ness of four-char constants (Was: Endian-ness of "PkgInfo" file)
  • Previous by thread: Trying to change nsoutline disclosure triangle
  • Next by thread: Re: Trying to change nsoutline disclosure triangle
  • Index(es):
    • Date
    • Thread