RE: NSFormatter for hexadecimal numbers
RE: NSFormatter for hexadecimal numbers
- Subject: RE: NSFormatter for hexadecimal numbers
- From: "Christopher Hickman" <email@hidden>
- Date: Wed, 24 May 2006 11:23:30 -0400
> Begin new to this, It sounds promising but the process has
> got me confused.
>
> 1) I have both HexFormatter.h and HexFormatter written. HexfFormatter
> is a descendent of NSFormatter.
>
> 2) In IB, I read the HexFormatter.h file
>
> 3) then I'm stumped. How do I use the super class ?
Well, if you didn't subclass NSNumberFormatter (incidentally, why aren't you
subclassing NSNumberFormatter to format your number?), you'll have to use a
sibling that's available in the IB palette (like NSNumberFormatter). After
you apply it to your NSTextField (or whatever), go into the hierarchy view
and find that formatter, highlight it, go to the Custom Class section of the
inspector, and change the custom class to your HexFormatter, and as the
Brit's say, Bob's your uncle.
Topher
_______________________________________________
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