• 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: Dirtying NSSearchField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Interface Builder backwards compatibility
  • Next by Date: Re: minimize the window & launch startup
  • Previous by thread: Dirtying NSSearchField
  • Next by thread: Highlighting a row in an NSTableView
  • Index(es):
    • Date
    • Thread