• 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: Want to iterate over items in EditingContext for validation before save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Want to iterate over items in EditingContext for validation before save (From: WebObjects <email@hidden>)

  • Prev by Date: Re: Want to iterate over items in EditingContext for validation before save
  • Next by Date: To Many relationship error
  • Previous by thread: RE: Want to iterate over items in EditingContext for validation before save
  • Next by thread: Re: Want to iterate over items in EditingContext for validation before save
  • Index(es):
    • Date
    • Thread