Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding Protocol?



On Sunday, December 30, 2001, at 05:30 pm, email@hidden wrote:

From "Learning Cocoa", page 243: @interface ToDoItem : NSObject <NSCoding>

From "Cocoa Programming for Mac OS X", page 145: "All the commonly used AppKit and Foundation classes implement the NSCoding protocol with the notable exception of NSObject.

Am I missing something here?

Obviously yes, you are. The line:

@interface ToDoItem : NSObject <NSCoding>

declares the interface for the ToDoItem class, which inherits from NSObject and implements to the NSCoding protocol. NSObject still doesn't implement to the NSCoding protocol, it's your class that does.

-- Finlay


References: 
 >Coding Protocol? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.