Trying to change nsoutline disclosure triangle
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