• 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: NSOutlineView and outlineViewSelectionIsChanging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView and outlineViewSelectionIsChanging


  • Subject: Re: NSOutlineView and outlineViewSelectionIsChanging
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 21 Jul 2005 09:21:41 -0700

On Jul 20, 2005, at 6:07 PM, Michael McCracken wrote:

The notification and corresponding delegate method:
- (void)outlineViewSelectionIsChanging:(NSNotification *) aNotification;


is according to the docs,
"Posted as the NSOutlineView's selection changes (while the mouse
button is still down)"

And this is strictly true, although I was surprised to find that it is
not sent when the selection is changed by using the arrow key. Is this
intended?


Currently, this is the intent. However, this is the second time I've heard about this being a problem, so it might be feasible that we change the behavior to always sent the notification and then update the docs.


You probably can override:

- (void)selectRowIndexes:(NSIndexSet *)indexes byExtendingSelection: (BOOL)extend;

and do your notification work before calling super (which actually changes the selection).

--corbin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSOutlineView and outlineViewSelectionIsChanging (From: Michael McCracken <email@hidden>)

  • Prev by Date: Re: NSTreeController and Core Data
  • Next by Date: Re: How do I add additional Attributes to a Core Data Entity?
  • Previous by thread: Re: NSOutlineView and outlineViewSelectionIsChanging
  • Next by thread: NSTreeController issue
  • Index(es):
    • Date
    • Thread