As a follow-up to my own post 2 days ago:

When in a document based app I bind the value of an NSTextField (or 
NSSearchField) in MyDocument.nib to File's Owner someString then I get the 
unwanted behaviour of the document getting marked as dirty (documentEdited) 
whenever I type in this NSTextField.
The document became clean again when the  NSTextField lost focus.
This behaviour I consider confusing. 

Everything now works as I want after adding an Object Controller to 
MyDocument.nib, connecting it's content outlet to File's Owner and binding the 
value of the NSTExtField to this Object Controller selection.someString.

This, by the way, is my first encounter with a real need for an Object 
Controller; previously I always thought a direct binding to be equivalent and 
easier.

Gerriet.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to