• 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: Editing Context Redux...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing Context Redux...


  • Subject: Re: Editing Context Redux...
  • From: Marek Wawrzyczny <email@hidden>
  • Date: Fri, 23 Apr 2004 14:00:13 +1000

Tell me about it. I've spent a long time trying to figure out why the returned EO was null... I guess your answer provides even more reason to investigate parent/child ECs.


On 23/04/2004, at 13:42, Chuck Hill wrote:

IIRC this works OK between parent and child nested editing contexts. But
where it does not work an exception would be preferable to null.


Chuck


At 01:21 PM 23/04/2004 +1000, Marek Wawrzyczny wrote:
Be careful not to use an EO that has not been committed to the database
when using EOUtilities.localInstanceOfObject( ) ie. the EOs that have
been only inserted into an editing context, not saved.
localInstanceOfObject will return null.


It makes sense when you think about it but it's a pity that WO JavaDocs
don't mention that behaviour.

Marek Wawrzyczny

software engineer
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400
http www.ish.com.au | email email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Editing Context Redux...
      • From: Chuck Hill <email@hidden>
References: 
 >Re: Editing Context Redux... (From: "Jonathan 'Wolf' Rentzsch" <email@hidden>)
 >Re: Editing Context Redux... (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: best way to display large set of data using wotable
  • Next by Date: Re: Editing Context Redux...
  • Previous by thread: Re: Editing Context Redux...
  • Next by thread: Re: Editing Context Redux...
  • Index(es):
    • Date
    • Thread