• 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
Read-only NSTableView bindings - forcing update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Read-only NSTableView bindings - forcing update


  • Subject: Read-only NSTableView bindings - forcing update
  • From: Andrew White <email@hidden>
  • Date: Tue, 10 May 2005 17:31:54 +1000


- Document object contains method that returns array of entries. eg - (NSArray *) myEntries;

- NIB contains data object controller that has document object as content.
- NIB contains array controller that has content array
	selection.myEntries [DataObjectController]

- NSTableView columns are bound to sub-methods of the data in myEntries.
	eg - arrangedObjects.firstDataPoint [ArrayController]

All this works fine for the initial display of the window. However, it is possible (in fact, normal) for the contents of the document to be changed by processes external to the interface. How do I notify the bindings system that it needs to redisplay the data?

If I was using the conventional mechanisms, I'd send a reloadData message to the NSTableView. Do I do the same here? That seems a little awkward, since the window can display the data without the File's Owner / document needing any connection to the table view. Is it possible to directly notify the bindings system as a whole that the key myEntries has changed in value? How do I do this?

Thanks

--
Andrew White

--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Read-only NSTableView bindings - forcing update
      • From: mmalcolm crawford <email@hidden>
    • Re: Read-only NSTableView bindings - forcing update [partially solved]
      • From: Andrew White <email@hidden>
  • Prev by Date: Re: One window for all documents.
  • Next by Date: NSTableView bound to array of NSString
  • Previous by thread: Re: One window for all documents.
  • Next by thread: Re: Read-only NSTableView bindings - forcing update [partially solved]
  • Index(es):
    • Date
    • Thread