• 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
Re: Document Edit State, Undo and Cocoa Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Document Edit State, Undo and Cocoa Bindings (From: Joseph Jones <email@hidden>)

  • Prev by Date: Re: Advanced?? Bindings Questions
  • Next by Date: Re: Document Edit State, Undo and Cocoa Bindings
  • Previous by thread: Re: Document Edit State, Undo and Cocoa Bindings
  • Next by thread: Re: Document Edit State, Undo and Cocoa Bindings
  • Index(es):
    • Date
    • Thread