Re: Want to iterate over items in EditingContext for validation before save
Re: Want to iterate over items in EditingContext for validation before save
- Subject: Re: Want to iterate over items in EditingContext for validation before save
- From: Art Isbell <email@hidden>
- Date: Tue, 2 May 2006 16:11:11 -1000
On May 2, 2006, at 4:01 PM, WebObjects wrote:
If I were to remove an element of the NSArray returned by this
method, would
then calling .saveChanges() on the ec now exclude objects removed
from the
array? If so is this because of the magic of WO keeping track of
things?
EOEditingContext.insertedObjects() returns an immutable NSArray, so
you shouldn't try to remove objects from it directly (it may be an
NSMutableArray under the covers, but you shouldn't muck with such
internal workings directly). Instead, send a deleteObject() message
to the editing context.
Aloha,
Art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden