• 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
RE: NSFormatter for hexadecimal numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • RE: NSFormatter for hexadecimal numbers
      • From: Louis Demers <email@hidden>
References: 
 >RE: NSFormatter for hexadecimal numbers (From: Louis Demers <email@hidden>)

  • Prev by Date: RE: NSFormatter for hexadecimal numbers
  • Next by Date: Re: NSImage Gradient Mask
  • Previous by thread: RE: NSFormatter for hexadecimal numbers
  • Next by thread: RE: NSFormatter for hexadecimal numbers
  • Index(es):
    • Date
    • Thread