Re: Implementing custom accessors in core data
Re: Implementing custom accessors in core data
- Subject: Re: Implementing custom accessors in core data
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 18 Jan 2006 07:37:25 -0800
On Jan 18, 2006, at 6:25 AM, Knud Möller wrote:
I wonder: why can't I just implement convenience accessor methods
like this:
- (NSString *)name
{
return [self valueForKey: @"name"];
}
- (void)setName: (NSString *)name
{
[self setValue: name forKey: @name];
}
Would this work?
What happens when you try it?
(See <http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/SearchImplementation.html#//apple_ref/doc/uid/
20000955>.)
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden