Hi Adam,
I've found that programmatically changing the selection using the tree
controller's -setSelectionIndexPath(s): will always send the
NSOutlineViewSelectionDidChangeNotification, you might want to have a
look here
http://www.wilshipley.com/blog/2006/04/pimp-my-code-part-10-whining-
I hooked it all up and now the OutlineView displays content, but the
exact same "out of sync issues remain"
The GUI representation of the selected row (which is always correct)
is not noticed by the TreeController under certain rare conditions. A
removal of an item and then an undo for instance.
On Thu, Mar 27, 2008 at 5:17 PM, Adam Gerson <[EMAIL PROTECTED]> wrote:
> 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.
No -- you bind the view to the controller and the controlle
> 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 co
On 26 Mar 2008, at 03:24, Adam Gerson wrote:
I take that back. [outlineView selectedRow] does appear to tell the
absolute truth. So I should now be able to try what you said and tie
the tree controller's @"selectionIndexPaths" to [outlineView
selectedRow]. I will report back my results...
Ada
I take that back. [outlineView selectedRow] does appear to tell the
absolute truth. So I should now be able to try what you said and tie
the tree controller's @"selectionIndexPaths" to [outlineView
selectedRow]. I will report back my results...
Adam
On Tue, Mar 25, 2008 at 11:12 PM, Adam Gerson
I think the big problem I am having is that an OutlineView doesn't
always accurately update its index paths to match the selection the
GUI is displaying. So I dont have accurate information to pass onto
the tree controller.
Adam
On Tue, Mar 25, 2008 at 10:29 AM, Jonathan Dann <[EMAIL PROTECTED]>
Have your tried binding the tree controller's @"selectionIndexPaths"
binding to a variable in your model object?
I havent tried it but it seems that you can do this in IB and then get
the model to observe the bound instance variable and you cab then see
each time the variable changes. Not s
Hey Jens,
Thanks for getting back to me.
> > When I
> > remove an object from the TreeController the row representing the
> > deleted object disappears and OutlineView selects the next row, but
> > does not send a notification to the delegate method
> > outlineViewSelectionDidChange.
>
> II
On 24 Mar '08, at 9:18 PM, Adam Gerson wrote:
When I
remove an object from the TreeController the row representing the
deleted object disappears and OutlineView selects the next row, but
does not send a notification to the delegate method
outlineViewSelectionDidChange.
IIRC, the notification
I have an NSOutlineView column bound to an NSTreeController. When I
remove an object from the TreeController the row representing the
deleted object disappears and OutlineView selects the next row, but
does not send a notification to the delegate method
outlineViewSelectionDidChange. When I manuall
11 matches
Mail list logo