Re: Obtaining a reference to an entity's context's owner
Re: Obtaining a reference to an entity's context's owner
- Subject: Re: Obtaining a reference to an entity's context's owner
- From: SA Dev <email@hidden>
- Date: Thu, 5 May 2005 14:52:58 -0400
And *that*, I believe, is exactly the direction I was looking for.
Thank you! <wipes sweat off furrowed brow>
So should my *persistent document* respond to keyword changes and
do the processing, or should each Page entity? I would think it'd be
more efficient for the document to handle this, but I may be wrong.
On May 5, 2005, at 2:38 PM, mmalcolm crawford wrote:
On May 5, 2005, at 11:29 AM, SA Dev wrote:
How is the document aware of the change. At what point do I hook
in to tell it that, when a Keyword is modified, it needs to
perform a string search on all Page objects' "content" properties,
then toggle its "needsSync" flag?
How is the change being made? There must be some event that
triggers the change?
In general there are a number of approaches:
If a text field is edited, you could watch for changes there; you
could register as an observer of the Keyword attributes; you could
register for NSManagedObjectContextObjectsDidChangeNotification
notifications...
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
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