• 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
-collapseItem: doesn't collapse when -outlineView:shouldShowOutlineCellForItem: returns NO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-collapseItem: doesn't collapse when -outlineView:shouldShowOutlineCellForItem: returns NO


  • Subject: -collapseItem: doesn't collapse when -outlineView:shouldShowOutlineCellForItem: returns NO
  • From: Markus Spoettl <email@hidden>
  • Date: Mon, 24 Jan 2011 20:02:08 -0500

Hello,

  I have an NSOutlineView that has the delegate method

- (BOOL)outlineView:(NSOutlineView *)outlineView shouldShowOutlineCellForItem:(id)item

implemented to return NO for some items (even though they do have subitems). These items are expanded and collapsed programmatically using NSOutlineView -expandItem: and -collapseItem:

Only: -collapseItem: doesn't work for items treated that way. Expanding does work as expected. Is this known or expected?

When I return YES in the above delegate method for these items, collapsing works again.

I'm on 10.6.6 using the 10.6 SDK.

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

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

  • Prev by Date: [iPhone] can't get views not to slide off by the height of the status bar
  • Next by Date: Re: NSOutlineView syncing demo project
  • Previous by thread: Re: [iPhone] can't get views not to slide off by the height of the status bar
  • Next by thread: How to set tab order in a window that has view swapping
  • Index(es):
    • Date
    • Thread