• 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: Coding Protocol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding Protocol?


  • Subject: Re: Coding Protocol?
  • From: Finlay Dobbie <email@hidden>
  • Date: Sun, 30 Dec 2001 17:40:52 +0000

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)

  • Prev by Date: Re: Setting a file's icon
  • Next by Date: Re: Coding Protocol?
  • Previous by thread: Coding Protocol?
  • Next by thread: Re: Coding Protocol?
  • Index(es):
    • Date
    • Thread