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

Re: NSKeyedArchiver selector not recognized


  • Subject: Re: NSKeyedArchiver selector not recognized
  • From: Scott Frankel <email@hidden>
  • Date: Fri, 5 May 2006 10:07:15 -0700


A typo. Ugh. Thanks much for the additional info! Very valuable! My app now archives its data.


I was hoping, though, that the app would write a human-readable file. I've tried setting the XCode target's -> Properties -> Document Types -> Extensions to both xml & plist. Each yields a binary file. Am I not finding the right widget or value to set? Or is the archive method I'm using not capable of writing plain ASCII?

(Note that for my purposes, I don't specifically need either a plist or xml format. I'm just interested in being able to write plain ASCII.)

Thanks again!
Scott




On May 5, 2006, at 9:24 AM, Mike Blaguszewski wrote:

On May 5, 2006, at 12:14 PM, Scott Frankel wrote:

I note, however, that the compiler returns a warning:

'NSKeyedArchiver' may not respond to '+archiveDataWithRootObject:'

The compiler is right, you've got a typo. The method is +archivedDataWithRootObject. Basically, because Objective-C is such a dynamic language, you'll get things as warnings that would be errors in other languages. That doesn't mean you should ignore them! Xcode's help viewer is very useful here. You can select a method, right-click, and say "Find Selected Text in API Reference". Or if you're not sure of the method, do the same for the class name. Or use code completion (I think it defaults to the escape key) to avoid typos altogether.


--
Mike Blaguszewski /  Ambrosia Software, Inc.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSKeyedArchiver selector not recognized
      • From: Bill Bumgarner <email@hidden>
References: 
 >NSKeyedArchiver selector not recognized (From: Scott Frankel <email@hidden>)
 >Re: NSKeyedArchiver selector not recognized (From: Mike Blaguszewski <email@hidden>)

  • Prev by Date: Which format for image file resources in Cocoa application?
  • Next by Date: Re: Which format for image file resources in Cocoa application?
  • Previous by thread: Re: NSKeyedArchiver selector not recognized
  • Next by thread: Re: NSKeyedArchiver selector not recognized
  • Index(es):
    • Date
    • Thread