• 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: EOs not in an EC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOs not in an EC


  • Subject: Re: EOs not in an EC
  • From: Steve Peery <email@hidden>
  • Date: Fri, 05 Mar 2010 11:40:12 -0500

Why are they in the XML if you don't want them? Seems like a waste to create them and just to be disposed. Can you modify the XML before you use it?

Steve

On Mar 5, 2010, at 11:24 AM, Robin Smith wrote:

> Dam ok
>
> i was hoping you were going to say "Yeah thats fine as long as you
> don't try to do anything with the objects not in an EC." not to worry
> i'll run through and make the changes required.
>
> Shame really as it seems quite logical to me to only insert the ones i
> want to keep. I'm sure thats just my lack of understanding.
>
> Thanks for help
>
> Robin
>
> On 5 March 2010 14:08, Steve Peery <email@hidden> wrote:
>> They say you should always put an EO object in an editing context before doing anything else.
>>
>> Therefore, I subclass the decoder and put the editing context in it so it can be used on creation.
>>
>> Something like this:
>>
>> public MyObject(WOXMLDecoder decoder) {
>>        super();
>>
>>        EOEditingContext ec = ((MyXMLDecoder)decoder).editingContext();
>>        ec.insertObject(this);
>>
>>        setName((String)decoder.decodeObjectForKey("name"));
>>        setType((String)decoder.decodeObjectForKey("type"));
>> }
>>
>>
>> Steve
>>
>> On Mar 5, 2010, at 4:54 AM, Robin Smith wrote:
>>
>>> Hi All,
>>>
>>> Bit of a basic question but i was wondering if this is "allowed".
>>>
>>> If i create an array of EO's for example using XMLCoder they don't get
>>> placed in an EC. Is
>>> it ok to iterate through the array and only insert the EO's i actually
>>> want to keep into my EC
>>> allowing the other ones to disappear off into the void. Or is this bad
>>> practice, should they all
>>> get put into an EC and then dealt with from there.
>>>
>>> Many Thanks
>>>
>>>
>>> Robin
>>> _______________________________________________
>>> 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
>>
>>
>
>
>
> --
> Robin Anthony Smith BEng Hons MBCS
> Internet Engineering
>
> Software and Infrastructure Engineer
> _______________________________________________
> 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

 _______________________________________________
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

  • Follow-Ups:
    • Re: EOs not in an EC
      • From: Robin Smith <email@hidden>
References: 
 >EOs not in an EC (From: Robin Smith <email@hidden>)
 >Re: EOs not in an EC (From: Steve Peery <email@hidden>)
 >Re: EOs not in an EC (From: Robin Smith <email@hidden>)

  • Prev by Date: Re: EOs not in an EC
  • Next by Date: Re: EOs not in an EC
  • Previous by thread: Re: EOs not in an EC
  • Next by thread: Re: EOs not in an EC
  • Index(es):
    • Date
    • Thread