• 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: ObjC 2.0 Class +encodeWithCoder:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjC 2.0 Class +encodeWithCoder:


  • Subject: Re: ObjC 2.0 Class +encodeWithCoder:
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 25 Feb 2008 16:08:12 +0100


Le 25 févr. 08 à 15:53, Jens Miltner a écrit :


Am 21.02.2008 um 23:57 schrieb Jean-Daniel Dupas:

No. Every where you can provide an instance, you should be able to provide a Class to.
For example, it's perfectly legal to register a Class as a notification observer (and use a Class method as target).
It also perfectly legal to register a Class as a delegate and implements Class method instead of instance methods to handle message.

Hmmh - but what exactly do you expect the class method endodeWithCoder: to do?
It's a class method, so it can't encode an instance.
Do you really want to encode the class object itself?

I'm not the one who want to encode classes. I just says this method should be called.
The original poster (A.M.) probably want to encode a structure that contains Class (like an array of Class or something like this).


_______________________________________________

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


References: 
 >Re: ObjC 2.0 Class +encodeWithCoder: (From: Charles Steinman <email@hidden>)
 >Re: ObjC 2.0 Class +encodeWithCoder: (From: Jean-Daniel Dupas <email@hidden>)
 >Re: ObjC 2.0 Class +encodeWithCoder: (From: Jens Miltner <email@hidden>)

  • Prev by Date: Re: Observing with GC
  • Next by Date: Re: NSInvocation question
  • Previous by thread: Re: ObjC 2.0 Class +encodeWithCoder:
  • Next by thread: PackageMaker Problem
  • Index(es):
    • Date
    • Thread