Great, that worked for me! Thanks.
-koko
On Oct 26, 2010, at 6:55 PM, Stephen J. Butler wrote:
On Tue, Oct 26, 2010 at 7:42 PM, <k...@highrolls.net> wrote:
dictionaryWithObjects:[NSArray arrayWithObjects:@"PCS",@"PCDA",nil]
forKeys:[NSArray
arrayWithObjects:NSFileHFSTypeCode,NSFileHFSCreatorCode,nil]];
-[NSCFString unsignedLongValue]: unrecognized selector sent to
instance
0x446990
NSFileHFSTypeCode and NSFileHFSCreatorCode don't take strings, they
take OSTypes encoded as an unsignedLong in an NSNumber:
<http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/LowLevelFileMgmt/Articles/HFSFileTypes.html#//apple_ref/doc/uid/20000779
>
Note the single quotes instead of double quotes around the types in
the example.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com