Re: Dirtying NSSearchField
Re: Dirtying NSSearchField
- Subject: Re: Dirtying NSSearchField
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 18 Dec 2009 12:09:11 +0700
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 (email@hidden)
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:
This email sent to email@hidden