Re: willDisplayOutlineCell of view-based NSOutlineView is not called
Re: willDisplayOutlineCell of view-based NSOutlineView is not called
- Subject: Re: willDisplayOutlineCell of view-based NSOutlineView is not called
- From: Lee Ann Rucker <email@hidden>
- Date: Thu, 21 Jun 2012 01:05:44 -0700 (PDT)
isItemExpandable and isGroupItem have nothing to do with NSCells. They're called for the items.
Cell-based table and outlineView reuse the cells for each row; this was a memory-saving technique 20 years ago, not so useful today. So before they drew a particular cell it had to be configured for the item; that's what the willDisplayCell methods are for.
outlineView:viewForTableColumn:item: is where you can create custom views.
----- Original Message -----
From: "Nava Carmon" <email@hidden>
To: email@hidden
Sent: Thursday, June 21, 2012 12:27:02 AM
Subject: willDisplayOutlineCell of view-based NSOutlineView is not called
Hi,
I want to customize the disclosure arrow appearance in my view-based NSOutlineView.
I overrode the willDisplayOutlineCell delegate method, but it's not called.
The willDisplayCell delegate method - is not called either. Is it known issue or I'm missing something?
(The isItemExpandable delegate function and isGroupItem returns YES for the expandable cell)
Thanks,
Nava
_______________________________________________
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
_______________________________________________
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