Re: Editing NSOutlineView Group Item
Re: Editing NSOutlineView Group Item
- Subject: Re: Editing NSOutlineView Group Item
- From: Graham Cox <email@hidden>
- Date: Mon, 03 Nov 2014 08:44:33 +1100
On 1 Nov 2014, at 8:38 pm, Luther Baker <email@hidden> wrote:
> How do I get an NSOutlineView row, designated as a "group" row, to reload
> itself?
You might be mistaking a group row for a "parent" row (these don't have a special name, but they're the ones that have turndown triangles that can open to show some contained content). A group row is really just a section heading, though these have a show/hide button that can disclose their content. For example, if you look in the source list in Mail, there's a group row at the top called 'MAILBOXES', whereas each mailbox has an icon and a turn-down triangle.
So, knowing what a group row *is*, it should be obvious that there's no content to reload - it's just a text label to mark off one section from another. If you want to reload a parent row, that's just done using the -reloadItem:reloadChildren: method as usual. To reload a group means reloading the item that contains it, most likely the root.
--Graham
_______________________________________________
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