• 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: NSNumber -> NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber -> NSString


  • Subject: Re: NSNumber -> NSString
  • From: Chris Parker <email@hidden>
  • Date: Wed, 13 Mar 2002 13:36:09 -0800

On Wednesday, March 13, 2002, at 01:15 PM, Lukasz Kuczborski wrote:

Anyone know how to convert NSNumber to NSString? (what method?)

I want to get file's creator and code...but NSFileHFSCreatorCode and
NSFileHFSTypeCode gives me numbers like: "1276423498", and i want to get it
in String like: "hlmg" - creator, "ddsk" - code.

Any ideas?

From the Foundation functions reference:

HFS File Types

NSFileTypeForHFSTypeCode
Returns a string encoding a file type code.

NSString *NSFileTypeForHFSTypeCode(OSType hfsFileTypeCode)

Discussion

Given an HFS file type code, this function returns a string that encodes the file type. The string will have been autoreleased.

...looks promising. :)

.chris

--
Chris Parker <email@hidden>
Cocoa Frameworks Engineer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSNumber -> NSString (From: Lukasz Kuczborski <email@hidden>)

  • Prev by Date: Re: NSNumber -> NSString
  • Next by Date: Re: NSNumber -> NSString
  • Previous by thread: Re: NSNumber -> NSString
  • Next by thread: Re: NSNumber -> NSString
  • Index(es):
    • Date
    • Thread