• 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: "Stephen J. Butler" <email@hidden>
  • Date: Tue, 26 Oct 2010 19:53:23 -0500

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

  • Follow-Ups:
    • Re: Unrecognized selector
      • From: email@hidden
References: 
 >Unrecognized selector (From: email@hidden)

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