Model changes behind NSTreeController's back
Model changes behind NSTreeController's back
- Subject: Model changes behind NSTreeController's back
- From: Mark Alldritt <email@hidden>
- Date: Thu, 15 Feb 2007 15:17:09 -0800
- Thread-topic: Model changes behind NSTreeController's back
Hi All,
I know that I should go through NSTreeController's APIs to alter the
underlying model, but my application allows the user to view the same model
in several forms. This means that I have an NSOutLineView driven by
NSTreeController and I have a custom view displaying and editing the same
model graphically. Its also possible the model may appear through this
arrangement of views in multiple windows.
My custom view posts KVO notifications when it changes the model, but
NSTreeController is failing to notice and as a result, the NSOutlineView
falls out of sync.
Does anyone have any suggestions on how to get NSTreeController to update
its NSOutlineView under this kind of situation?
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 4.0 - AppleScript IDE
WEB: http://www.latenightsw.com/ FaceSpan 4.3 - AppleScript RAD
Affrus 1.0 - Perl Debugging
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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