Re: quick and dirty NSData implosion
Re: quick and dirty NSData implosion
- Subject: Re: quick and dirty NSData implosion
- From: Graham Cox <email@hidden>
- Date: Sat, 9 May 2009 10:56:48 +1000
On 09/05/2009, at 12:35 AM, jon wrote:
@interface BookMark : NSObject
You can help yourself out with this type of thing by declaring your
classes properly. If you need it to be NSCoding compliant (as you do),
then ensure it subscribes to the protocol:
@interface BookMark : NSObject <NSCoding>
Then if you forget or don't know how to ensure protocol compliance,
the compiler will liberally warn you for all the places you forgot to
implement the required methods.
If this is gibberish, read up on formal protocols, and NSCoding in
particular.
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocProtocols.html
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html
--Graham
_______________________________________________
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