• 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
bindings tutorial doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bindings tutorial doesn't work


  • Subject: bindings tutorial doesn't work
  • From: Daniel Child <email@hidden>
  • Date: Tue, 20 May 2008 00:41:57 -0400

After reading a host of theoretical explanations on bindings, I tried the bindings-based currency converter tutorial to try to get some basic feel for bindings in practice. The example is written for an earlier version of OSX, but I think I reproduced it correctly for XCode 3. However, I get the following runtime error.

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot create number from object <_NSControllerObjectProxy: 0x148070> of class _NSControllerObjectProxy'

I am surprised by the error because bindings is supposed to be "smart enough" to convert the numbers in text fields (strings) to numbers when necessary. For those who haven't seen the tutorial, the interface is:

@interface Converter : NSObject
{
  double dollarsToConvert;
  double exchangeRate;
}
-(double) amountInOtherCurrency;
// implemented as return (double) (dollarsToConvert * exchangeRate)
@end

I have no idea what this error means and found no helpful references on the web. If someone could shed some light on this issue I'd really appreciate it. Thanks.

Daniel
_______________________________________________

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


  • Follow-Ups:
    • Re: bindings tutorial doesn't work
      • From: Michael Babin <email@hidden>
  • Prev by Date: Re: NSStream, NSInputStream, NSOutputStream
  • Next by Date: Re: Cocoa et al as HCI usability problem
  • Previous by thread: Re: Localization and plural rules revisited
  • Next by thread: Re: bindings tutorial doesn't work
  • Index(es):
    • Date
    • Thread