• 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
Re: Editing NSOutlineView Group Item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing NSOutlineView Group Item


  • Subject: Re: Editing NSOutlineView Group Item
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 03 Nov 2014 17:55:42 +0000

On Nov 3, 2014, at 04:12 , Luther Baker <email@hidden> wrote:
>
> > Or perhaps you are mis-tracking the selected item.
>
> I've double checked what I thought I knew -- but as you imply, who knows at this point.


You are mis-tracking the selected item, I think. The delegate method ‘outlineView:shouldSelectItem:’ doesn’t tell you what *is* selected, nor (necessarily) what *will be* selected. All it tells you is that NSOutlineView has some reason for asking you whether it *could be* selected.

A better delegate method to track what’s actually selected is ‘outlineViewSelectionDidChange:’, and in that method you can ask the outline view for the selection.

I think your ‘outlineView:isItemExpandable:’ method is also wrong. You should at least return YES when the item is nil.




_______________________________________________

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: Editing NSOutlineView Group Item
      • From: Luther Baker <email@hidden>
References: 
 >Editing NSOutlineView Group Item (From: Luther Baker <email@hidden>)
 >Re: Editing NSOutlineView Group Item (From: Graham Cox <email@hidden>)
 >Re: Editing NSOutlineView Group Item (From: Ken Thomases <email@hidden>)
 >Re: Editing NSOutlineView Group Item (From: Graham Cox <email@hidden>)
 >Re: Editing NSOutlineView Group Item (From: Luther Baker <email@hidden>)
 >Re: Editing NSOutlineView Group Item (From: Luther Baker <email@hidden>)
 >Re: Editing NSOutlineView Group Item (From: Quincey Morris <email@hidden>)

  • Prev by Date: nested split views
  • Next by Date: Background CIFilter processing?
  • Previous by thread: Re: Editing NSOutlineView Group Item
  • Next by thread: Re: Editing NSOutlineView Group Item
  • Index(es):
    • Date
    • Thread