• 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: Bindings and Setters that return a value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings and Setters that return a value


  • Subject: Re: Bindings and Setters that return a value
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 9 Nov 2005 18:16:41 -0800


On Nov 9, 2005, at 5:58 PM, Dominic Feira wrote:

I have been dabbling in Bindings as I think they would be nice time savers, however I have run into a problem. It seems that if a setter returns anything this error is returned.

KVO autonotifying only supports -set<Key>: methods that return void. Autonotifying will not be done for invocations of...

My setters simply return an OSStatus, which is great for error catching, but bad for Bindings. Any suggestions?

Throwing exceptions instead of returning a value would make more sense likely.


-Shawn
_______________________________________________
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


  • Follow-Ups:
    • Re: Bindings and Setters that return a value
      • From: Shawn Erickson <email@hidden>
References: 
 >Bindings and Setters that return a value (From: Dominic Feira <email@hidden>)

  • Prev by Date: Re: Custom NSView and NSUndoManager
  • Next by Date: 10.4.3 Crashes with NSTreeController Selection Index Paths
  • Previous by thread: Bindings and Setters that return a value
  • Next by thread: Re: Bindings and Setters that return a value
  • Index(es):
    • Date
    • Thread