Re: outlineViewSelectionDidChange not called
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