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

Bindings


  • Subject: Bindings
  • From: Rick Bischoff <email@hidden>
  • Date: Sat, 19 Jun 2004 16:14:13 -0500

Hello,

I just completed the tutorial (http://developer.apple.com/documentation/Cocoa/Conceptual/ CurrencyConverterBindings/index.html#//apple_ref/doc/uid/TP40001095) on Cocoa bindings and am trying to convert the text field for the "Exchange Rate" such that it:

1. Displays the number as a percentage (done)
2. Uses the actual decimal value in the bindings (i.e., divide the number in the box by 100)

So I created a "Value Transformer" class, but since this is a "Document Based Cocoa App", I have no idea how/where I should
register the transformation at. The docs say to use..

[NSValueTransformer setValueTransformer:etcetcetc]

In the "initialize:" class message (or in applicationDidFinishLoading:), but I don't know how or where to set my controller as a delegate to receive these messages (This is a Document based application and IB does not show me a "delegate" outlet when I do the usual control-drag from File's Owner to the controller)

Any help would be much appreciated.

Thanks,
Rick Bischoff
Blog, and home for some MacOS X apps -- http://rickjr.org
_______________________________________________
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: Bindings
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Fwd: NSURLConnection retainCount at initialisation
  • Next by Date: Re: iChat plug-ins?
  • Previous by thread: Re: NSURLConnection retainCount at initialisation
  • Next by thread: Re: Bindings
  • Index(es):
    • Date
    • Thread