• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[NSOutlineView] How to know an item is expanded if its parent item is not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSOutlineView] How to know an item is expanded if its parent item is not?


  • Subject: [NSOutlineView] How to know an item is expanded if its parent item is not?
  • From: Stéphane Sudre <email@hidden>
  • Date: Sun, 2 Mar 2008 00:02:10 +0100

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)?


_______________________________________________

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


  • Follow-Ups:
    • Re: [NSOutlineView] How to know an item is expanded if its parent item is not?
      • From: Jonathan Dann <email@hidden>
    • Re: [NSOutlineView] How to know an item is expanded if its parent item is not?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Returning values from objc_msgSend etc
  • Next by Date: Re: [NSOutlineView] How to know an item is expanded if its parent item is not?
  • Previous by thread: Re: Charting API?
  • Next by thread: Re: [NSOutlineView] How to know an item is expanded if its parent item is not?
  • Index(es):
    • Date
    • Thread