outlineView:willDisplayOutlineCell:... and disclosue triangles
outlineView:willDisplayOutlineCell:... and disclosue triangles
- Subject: outlineView:willDisplayOutlineCell:... and disclosue triangles
- From: Keith Blount <email@hidden>
- Date: Fri, 14 Apr 2006 14:06:26 -0700 (PDT)
Hi,
I'm using NSOutlineView's delegate method
-outlineView:willDisplayOutlineCell:forTableColumn:item:
to change the outline view's disclosure triangle
images. (I'm doing this because I have a black outline
view akin to the keywords one in Aperture, so I need
white disclosure triangles.) My code looks something
like this:
- (void)outlineView:(NSOutlineView *)ov
willDisplayOutlineCell:(id)cell
forTableColumn:(NSTableColumn *)tableColumn
item:(id)item
{
[cell setImage:@"WhiteCollapsedArrow"];
[cell setAlternativeImage:@"WhiteExpandedArrow"];
}
This works fine, except that I have lost the
animation. For this, I need to be know when the
intermittent image (the half-open/half closed-arrow)
should be drawn, something like an -itemIsExpanding:
method, so that I can set the image to the halfway
arrow during the animation...
Does anybody have any ideas how I can do this?
Many thanks,
Keith
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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