Re: Auto-Selection of an object in a PopUp Button
Re: Auto-Selection of an object in a PopUp Button
- Subject: Re: Auto-Selection of an object in a PopUp Button
- From: David Griffith <email@hidden>
- Date: Tue, 09 Nov 2004 16:54:10 +0100
Dirk,
You are the man. The man I say.
So, I was actually easily able to tell it to build the country list using
the fetch spec based on the addressContext. That appears to have worked a
treat, I never thought of it.
However, I have two questions:
Firstly, since I know those country objects were already registered with the
defaultEditingContext previously, will they be faulted into the other
editingContext automatically by using the fetch spec?
I.e. If previously I had called
new NSMutableArray(ec.objectsWithFetchSpecification(fetchSpec));
And now I call:
New NSMutableArray(addressContext.objectsWithFetchSpecification(fetchSpec));
Will the country objects be faulted into the addressContext because they are
already registered in the default one?
Also, you say 'migrate' the object to the other context. How would you go
about doing that? I didn't know you could.
Thanks for the help!
Dave.
> Hi David,
>
>> However, the selectedCountry object is actually a fault (since I am
>> using a
>> different editingContext in this situation and the country objects
>> would
>> previously have been loaded into the default editing context).
>
> Both the list and the object have to be in the same editing context,
> otherwise it won't work. Migrate the Country object from the different
> editing context into the defaultEditingContext and everything should
> work as expected.
>
> Cheers,
> Dirk
>
_______________________________________________
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