NSHFSTypeCodeFromFileType troubles
NSHFSTypeCodeFromFileType troubles
- Subject: NSHFSTypeCodeFromFileType troubles
- From: Chris Gervais <email@hidden>
- Date: Thu, 07 Mar 2002 13:54:54 -0500
So I'm trying to use the nifty Foundation function
NSHFSTypeCodeFromFileType() which doesn't appear to be a difficult endeavor.
NSHFSTypeCodeFromFileType is supposed to turn NSStrings into OSTypes. Cool.
However, I've tried passing several NSStrings into it, yet it always returns
zero. The length of the strings are four characters and I've even tried a
gimme like NSHFSTypeCodeFromFileType(@"JPEG") but I'm always getting zero
back.
Is there any hidden trick here or am I just missing something super-obvious?
I was hoping that this function would be a quick way to create some OSTypes
for me to pass along to various Carbon functions rather than having to write
an NSString->OSType function, which, granted, isn't hard, but is just one
more thing I didn't want to write. Of course, I probably could have in the
time it took to write this message. Hmmm...is it too early for a cocktail?
Thanks,
Chris
_______________________________________________
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.