• 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
Binding NSTextField to an Unsigned int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding NSTextField to an Unsigned int


  • Subject: Binding NSTextField to an Unsigned int
  • From: Matthew Leon Grinshpun <email@hidden>
  • Date: Sat, 3 Feb 2007 13:09:28 -0500

I have asked this question several days ago on cocoadev, but have yet to receive a response, here: http://www.cocoadev.com/index.pl? BindingQuestions

Hence, I turn to you...

How do I bind an NSTextField to an unsigned int?

Some explanation: I want to bind my NSTextField to the selectionIndex key of an NSArrayController. Apple suggests (http:// developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/ Concepts/Troubleshooting.html#//apple_ref/doc/uid/TP40002148-182420) that I "consider transforming the value using an NSValueTransformer, or in the specific case of NSTextField, NSFormatter."

For some reason, I can't wrap my head around what, exactly, I should do with an NSFormatter to have my NSTextField send an unsigned int... Likewise, I can't figure out how to program an NSValueTransformer to send out an unsigned int, since it seem to have to send out some kind of object and not a primitive datatype.

Thanks ahead of time,

Matthew


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Binding NSTextField to an Unsigned int
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: key path blues
  • Next by Date: Re: Binding NSTextField to an Unsigned int
  • Previous by thread: Re: NSArrayController and variable number of NSTextFields
  • Next by thread: Re: Binding NSTextField to an Unsigned int
  • Index(es):
    • Date
    • Thread