• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Saving NSObjectController info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >RE: Saving NSObjectController info (From: <email@hidden>)
 >Re: Saving NSObjectController info (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Re: Binding one array controller to the variable of the content of
  • Next by Date: Sorting
  • Previous by thread: Re: Saving NSObjectController info
  • Next by thread: RE: Saving NSObjectController info
  • Index(es):
    • Date
    • Thread