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

Trying to change nsoutline disclosure triangle


  • Subject: Trying to change nsoutline disclosure triangle
  • From: Keith Pritchard <email@hidden>
  • Date: Sat, 14 Jan 2006 03:09:24 +0000

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: This email sent to email@hidden
  • Follow-Ups:
    • Re: Trying to change nsoutline disclosure triangle
      • From: Guillaume Gandreau <email@hidden>
  • Prev by Date: Re: Another newbie EXC_BAD_ACCESS in C
  • Next by Date: NSWindow from another thread.
  • Previous by thread: Re: Another newbie EXC_BAD_ACCESS in C
  • Next by thread: Re: Trying to change nsoutline disclosure triangle
  • Index(es):
    • Date
    • Thread