RE: NSFormatter for hexadecimal numbers
RE: NSFormatter for hexadecimal numbers
- Subject: RE: NSFormatter for hexadecimal numbers
- From: Louis Demers <email@hidden>
- Date: Wed, 24 May 2006 13:45:20 -0400
At 11:23 AM -0400 2006/05/24, Christopher Hickman wrote:
> 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?),
Because I didn't know better ;-(
Following your instructions below I got it to work nicely.
Thanks a lot to all.
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
--
Louis Demers ing.
email@hidden
_______________________________________________
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