Binding NSTextField to an Unsigned int
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