• 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
Model changes behind NSTreeController's back
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Model changes behind NSTreeController's back
      • From: Chris Hanson <email@hidden>
    • Re: Model changes behind NSTreeController's back
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: NSSavePanel: save a folder
  • Next by Date: Re: PDFMarkupAnnotations not showing when drawing PDFPage
  • Previous by thread: Re: NSSavePanel: save a folder
  • Next by thread: Re: Model changes behind NSTreeController's back
  • Index(es):
    • Date
    • Thread