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




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



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.