Re: Bindings / Core Data: Ensuring a value is unique
Re: Bindings / Core Data: Ensuring a value is unique
- Subject: Re: Bindings / Core Data: Ensuring a value is unique
- From: Chris Blunt <email@hidden>
- Date: Thu, 14 Sep 2006 16:47:38 +0100
Thanks for that, I'll take a look into it and see what happens!
I've got some strange behaviours appearing in my controllers now as
well - deleted records seem to leave a 'shadow' copy of the record,
despite multiple calls to [NSManagedObjectContext
processPendingChanges] and [NSArrayController prepareContent].
Are there any (debugger) tools available that allow us to look inside
Core-Data/bindings and see whats happening to the object graph?
Thanks,
Chris
--
www.chrisblunt.com
On 14 Sep 2006, at 13:50, I. Savant wrote:
You'll want to look into Core Data's validation machinery:
http://developer.apple.com/documentation/Cocoa/Conceptual/
ModelObjects/Articles/moValidation.html
Though I haven't done what you're looking for specifically, I'd
probably try fetching any matches within the validation code and
denying the change if any are found.
--
I.S.
On Sep 14, 2006, at 6:25 AM, Chris Blunt wrote:
Hi,
Could anyone let me know if there is an elegant way to ensure when
a value is assigned to an NSManagedObject, that value is unique?
Is there a method to ensure that entries are unique, or should my
controller manually check? If this is the case, where should I put
this check code to allow the controller to 'deny' the change?
I'm trying to learn the most elegant, 'Cocoa-friendly' solutions
to my problems, and can't find an answer to this one! Appreciate
any help or pointers in the right direction!
Thanks,
Chris
--
www.chrisblunt.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
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