Re: ObjC 2.0 Class +encodeWithCoder:
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