Re: Document Edit State, Undo and Cocoa Bindings
Re: Document Edit State, Undo and Cocoa Bindings
- Subject: Re: Document Edit State, Undo and Cocoa Bindings
- From: Scott Stevenson <email@hidden>
- Date: Tue, 28 Sep 2004 23:03:20 -0700
On Sep 28, 2004, at 10:00 PM, Joseph Jones wrote:
And if the controllers are accessing the data directly and not going
through
the document (as all examples seem to show) how is this to be
accomplished?
Bindings uses KVC, so direct data access only happens if accessors
don't exist.
Does every object in the data require a link back to the document in
order
to set this state?
I believe NSUndoManager will handle the edit state for you.
How are Adds/Removes that operate on the Cocoa collection types dealt
with?
Do you have to subclass the collections themselves?
No subclassing, you can use indexed accessors:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/AccessorConventions.html#//apple_ref/doc/uid/
20002174/BAJEDEFB>
This too is discussed in Aaron's new book.
- Scott
--
Tree House Ideas
http://treehouseideas.com/
_______________________________________________
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