Re: Saving NSObjectController info
Re: Saving NSObjectController info
- Subject: Re: Saving NSObjectController info
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 16 Feb 2005 01:13:28 -0800
On Feb 16, 2005, at 12:42 AM, mmalcolm crawford wrote:
{
Recipe* newRecipe = [[NSUnarchiver
unarchiveObjectWithData:fileData] retain]; // fileData is my NSData*
object
recipe = newRecipe;
[newRecipe release];
}
[...]
You need to call a KVO-compliant accessor method for the KVO
notification to be sent so that the object controller notices your
variable has changed.
To be pedantic, you don't. You could call the KVO change notification
methods yourself. In general, however, you are better off implementing
and using accessor methods...
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