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

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


References: 
 >Re: Unrecognized selector (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: Unrecognized selector
  • Next by Date: NSFileManager and Resource Forks
  • Previous by thread: Re: Unrecognized selector
  • Next by thread: NSFileManager and Resource Forks
  • Index(es):
    • Date
    • Thread