• 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: Michael McCracken <email@hidden>
  • Date: Wed, 20 Jul 2005 22:47:54 -0700

BTW, I have a minimal project that can demonstrate this unexpected
behavior if anyone is interested.

-mike

On 7/20/05, Michael McCracken <email@hidden> wrote:
> Hi, I am wondering if this is a bug in NSOutlineView or perhaps a
> misunderstanding.
>
> **Problem:
>
> 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?
>
> **Explanation:
>
> Although the problem is unrelated to bindings, the reason I need this
> is that I am attempting to unbind controllers that are inappropriate
> to the current selection, and if I wait until after the selection
> changes to unbind, the outlineview's controller and an object of the
> selected class will already have complained about the selected class
> not supporting the expected bound keys.
>
> I think that changing views and bindings on the fly to display
> different selected types should be a common pattern, but I am not
> seeing a way to implement it by watching the outline view's selection
> or by watching the tree controller's selection (which I do for other
> reasons, but again it comes too late to unbind before errors.)
>
> Any advice would be appreciated, especially if there's a more obvious
> way to do what I need.
>
> Thanks!
> -mike
>
> --
> Michael McCracken
> UCSD CSE PhD Candidate
> research: http://www.cse.ucsd.edu/~mmccrack/
> misc: http://michael-mccracken.net/blog/
>


--
Michael McCracken
UCSD CSE PhD Candidate
research: http://www.cse.ucsd.edu/~mmccrack/
misc: http://michael-mccracken.net/blog/
 _______________________________________________
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: drawRect not always called after setNeedsDisplay
  • Next by Date: build a complex interface in Interface Builder
  • Previous by thread: NSOutlineView and outlineViewSelectionIsChanging
  • Next by thread: Re: NSOutlineView and outlineViewSelectionIsChanging
  • Index(es):
    • Date
    • Thread