Re: Editing Context Redux...
Re: Editing Context Redux...
- Subject: Re: Editing Context Redux...
- From: Chuck Hill <email@hidden>
- Date: Thu, 22 Apr 2004 21:36:37 -0700
Personally I stay away from them unless I am doing funky "tabbed"
interfaces or wizard like functionality that spans multiple pages.
Otherwise peer editing contexts are less effort to deal with. But when you
need child ECs you really do need them!
Chuck
At 02:00 PM 23/04/2004 +1000, Marek Wawrzyczny wrote:
>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.
>
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.