FROM : Jonathan Dann
DATE : Sun Mar 02 17:50:18 2008
On 1 Mar 2008, at 23:02, Stéphane Sudre wrote:
> There seems to be a missing method in NSOutlineView.
>
> You can know an item is expanded only if its parent is expanded (so
> that the item itself is visible).
>
> This is problematic if you want to cache the current list of
> expanded items. Instead of just iterating through the item hierarchy
> when needed, you would need to use the notifications sent when an
> item is about to be disclosed or closed.
>
> This is a bit strange if you consider that NSOutlineView probably
> caches this information in _expandSet or _expandSetToExpandItemsInto
> so that it can remember to expand the children of an item if needed.
>
> An I missing something and is there a way to know which items are
> expanded (either visible or not)?
For what it's worth, I haven't found a way to do this either, would be
really great if this can be cracked. I had to manually track all the
NSOutlineViewItemDidExpand (and the Collapse) notifications.
Jon_______________________________________________
Cocoa-dev mailing list (<email_removed>)
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:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
This email sent to <email_removed>
DATE : Sun Mar 02 17:50:18 2008
On 1 Mar 2008, at 23:02, Stéphane Sudre wrote:
> There seems to be a missing method in NSOutlineView.
>
> You can know an item is expanded only if its parent is expanded (so
> that the item itself is visible).
>
> This is problematic if you want to cache the current list of
> expanded items. Instead of just iterating through the item hierarchy
> when needed, you would need to use the notifications sent when an
> item is about to be disclosed or closed.
>
> This is a bit strange if you consider that NSOutlineView probably
> caches this information in _expandSet or _expandSetToExpandItemsInto
> so that it can remember to expand the children of an item if needed.
>
> An I missing something and is there a way to know which items are
> expanded (either visible or not)?
For what it's worth, I haven't found a way to do this either, would be
really great if this can be cracked. I had to manually track all the
NSOutlineViewItemDidExpand (and the Collapse) notifications.
Jon_______________________________________________
Cocoa-dev mailing list (<email_removed>)
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:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Stéphane Sudre | Mar 2, 00:02 | |
| j o a r | Mar 2, 00:42 | |
| John Stiles | Mar 2, 03:01 | |
| Seth Willits | Mar 2, 05:24 | |
| Stéphane Sudre | Mar 2, 16:23 | |
| Jonathan Dann | Mar 2, 17:50 |






Cocoa mail archive

