• 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: Auto-Selection of an object in a PopUp Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto-Selection of an object in a PopUp Button


  • Subject: Re: Auto-Selection of an object in a PopUp Button
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 9 Nov 2004 10:57:32 -0800


On Nov 9, 2004, at 7:54 AM, David Griffith wrote:

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?


Sort of. It will make a trip to the database anytime you call objectsWithFetchSpecifications to determine which objects are affected. At that point it may decide to use the data it already has cached.


Also, you say 'migrate' the object to the other context. How would you go
about doing that? I didn't know you could.
See the localInstanceOfObject and localInstancesOfObjects method in EOUtilities (EOAccess package).

These methods do not result in a trip to the DB (unless the data is stale, but lets not confuse things yet).

Chuck


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
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: Auto-Selection of an object in a PopUp Button (From: David Griffith <email@hidden>)

  • Prev by Date: Re: Java Client with XCode and WO5.2.3
  • Next by Date: WOCheckboxMatrix & disabled binding
  • Previous by thread: Re: Auto-Selection of an object in a PopUp Button
  • Next by thread: EOQualifier and Fetch Bug?
  • Index(es):
    • Date
    • Thread