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

An Octal number into a Textfield


  • Subject: An Octal number into a Textfield
  • From: Andrew Knott <email@hidden>
  • Date: Tue, 13 Jun 2006 13:55:33 +0100

Hi everyone,

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

If I have :

fileMode = 0644;

and set a textField with

[octalField setStringValue: [[NSNumber numberWithUnsignedLong:fileMode] stringValue]];

I get only the decimal version of the number? How would I get an octal representation? With a NSNumberFormatter perhaps? I don't seem to be able to find any hints...

thanks for your help.

Andrew
_______________________________________________
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: An Octal number into a Textfield
      • From: Sherm Pendley <email@hidden>
    • Re: An Octal number into a Textfield
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Array Controller - Making some items uneditable?
  • Next by Date: Problem fetching subentities
  • Previous by thread: Re: Array Controller - Making some items uneditable?
  • Next by thread: Re: An Octal number into a Textfield
  • Index(es):
    • Date
    • Thread