enabling KeyedCoding
enabling KeyedCoding
- Subject: enabling KeyedCoding
- From: "William Zumwalt" <email@hidden>
- Date: Sun, 13 May 2007 14:15:51 -0500
What must I do to enable keyed coding of objects? My NSCoding methods
are really basic like the following but the allowsKeyedCoding always
returns a false.
- (void)encodeWithCoder:(NSCoder *)encoder
{
if ([encoder allowsKeyedCoding]) {
... // never falls inside here.
- (id)initWithCoder:(NSCoder *)decoder
{
if (self = [super init]) {
if ([decoder allowsKeyedCoding]) {
... // never falls inside here.
- (id)replacementObjectForPortCoder:(NSPortCoder *)encoder
{
if ([encoder isBycopy]) {
return self;
}
return [super replacementObjectForPortCoder:encoder];
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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