• 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: An Octal number into a Textfield
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: An Octal number into a Textfield


  • Subject: Re: An Octal number into a Textfield
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 13 Jun 2006 08:08:06 -0700

On 6/13/06, Andrew Knott <email@hidden> wrote:
Hi everyone,

Just a quick one... I'm trying to get an NSTextField to display an
octal number

If I have :

fileMode = 0644;
[snip]
With a NSNumberFormatter perhaps?

That is one possible option, especially if you want to manage/validate user input.

If it is just for display review the following...

<http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/Articles/FormatStrings.html#//apple_ref/doc/uid/20000943>

...and note the %o %O format specifiers.

-Shawn
_______________________________________________
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


References: 
 >An Octal number into a Textfield (From: Andrew Knott <email@hidden>)

  • Prev by Date: Re: NSDocument and dealloc
  • Next by Date: Re: NSDocument and dealloc
  • Previous by thread: An Octal number into a Textfield
  • Next by thread: Re: An Octal number into a Textfield
  • Index(es):
    • Date
    • Thread