Re: NSNumber -> NSString
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.