Re: Unrecognized selector
Re: Unrecognized selector
- Subject: Re: Unrecognized selector
- From: email@hidden
- Date: Tue, 26 Oct 2010 19:16:22 -0600
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, <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden