• 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: outlineViewSelectionDidChange not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: outlineViewSelectionDidChange not called


  • Subject: Re: outlineViewSelectionDidChange not called
  • From: "Adam Gerson" <email@hidden>
  • Date: Thu, 27 Mar 2008 13:17:01 -0400

>  Ah.. I'm not quite sure you got what I meant.  In a (document-based)
>  app set up an NSArray *selectionIndexPaths ivar, so the
>  NSTreeController then binds its @"selectionIndexPaths" binding to the
>  keypath @"File's Owner.selectionIndexPaths" where file's owner is the
>  owner of the nib containing the tree controller and the outline view.
>  The outline view then has its content bound to the tree controller's
>  @"arrangedObjects" controller key, the selectionIndexPaths to the
>  @"selectionIndexPaths" controller key and then the outline view's
>  table column's @"value" binding is set to the tree controller's
>  @"arrangedObjects.nodeName" (nodeName is just an NSString
>  representation of a file path).
>
Ok, I understand. So I bind both the OutlineView and the
TreeController to a third object that keeps them both in sync to the
same SelectionIndexPath value. However, when I tried this my
OutlineView was blank. I think the Outline Views's selectionIndexPaths
binding refers to the selectionIndexPaths of its content provider(in
this case the tree controller). I dont think and outline view has
selectionIndexPaths properties of its own.
_______________________________________________

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: outlineViewSelectionDidChange not called
      • From: "Hamish Allan" <email@hidden>
References: 
 >outlineViewSelectionDidChange not called (From: "Adam Gerson" <email@hidden>)
 >Re: outlineViewSelectionDidChange not called (From: Jens Alfke <email@hidden>)
 >Re: outlineViewSelectionDidChange not called (From: "Adam Gerson" <email@hidden>)
 >Re: outlineViewSelectionDidChange not called (From: Jonathan Dann <email@hidden>)
 >Re: outlineViewSelectionDidChange not called (From: "Adam Gerson" <email@hidden>)
 >Re: outlineViewSelectionDidChange not called (From: "Adam Gerson" <email@hidden>)

  • Prev by Date: Re: NSMapTable with pointer keys ?
  • Next by Date: Re: NSMapTable with pointer keys ?
  • Previous by thread: Re: outlineViewSelectionDidChange not called
  • Next by thread: Re: outlineViewSelectionDidChange not called
  • Index(es):
    • Date
    • Thread