Re: NSKeyedArchiver selector not recognized
Re: NSKeyedArchiver selector not recognized
- Subject: Re: NSKeyedArchiver selector not recognized
- From: Mike Blaguszewski <email@hidden>
- Date: Fri, 5 May 2006 12:24:33 -0400
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