• 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: NSTextField and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField and bindings


  • Subject: Re: NSTextField and bindings
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 5 May 2004 12:07:04 +0200

On 4. May 2004, at 20:48, Steve Sims wrote:

Unless you, me, or somebody else comes up with something to solve this one it looks like I may have to revert to an old-fashioned non-bindings way of setting this value...

I didn't seem to spot anyone proposing a workaround (just read the thread). The problem with the first example you gave is, that your entire method (setText:) is wrapped in automatic wiil/didChangeValueForKey messages.

So unless you get KVV to work, I'd suggest disabling the automatic notification for the 'text' key (see automaticallyNotifiesObserversForKey: in NSKeyValueObserving). As an alternative you should also be able to send setText: using performSelectorAfterDelay:withObject:, to get out of the current "notification" -- although I have tested neither methods...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSTextField and bindings
      • From: Steve Sims <email@hidden>
References: 
 >NSTextField and bindings (From: Steve Sims <email@hidden>)
 >Re: NSTextField and bindings (From: Fritz Anderson <email@hidden>)
 >Re: NSTextField and bindings (From: Steve Sims <email@hidden>)

  • Prev by Date: NSTableView updating single cells
  • Next by Date: Re: The current keyboard icon?
  • Previous by thread: Re: NSTextField and bindings
  • Next by thread: Re: NSTextField and bindings
  • Index(es):
    • Date
    • Thread