• 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
Seeting WODisplayGroup Fetch Spec Programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seeting WODisplayGroup Fetch Spec Programatically


  • Subject: Seeting WODisplayGroup Fetch Spec Programatically
  • From: Owen McKerrow <email@hidden>
  • Date: Tue, 27 Jan 2004 11:29:55 +1100

Hi All,

I want to be able to pass in a name of the fetch spec I want it to use (that's defined in the entity, in the model file ) and then programatically change the WODisplaygroup so that it use this fetch spec.

I would imagine I would use something like this ( thanks WOCode.com) :

EOFetchSpecification spec = new EOFetchSpecification("Job", qual,
null);
        EODatabaseDataSource ds =
(EODatabaseDataSource)jobDisplayGroup.dataSource();
        ds.setFetchSpecification(spec);
        jobDisplayGroup.fetch();

But that's a fetch spec made programatically, how do I find out what fetch specs are defined in my model for each entity and then how do I assign one of these to the display group ?

Thanks
Owen

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"I like the way this project has somehow, against all common sense, got itself made."
- Peter Jackson, "The Lord of The Rings"
_______________________________________________
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: Seeting WODisplayGroup Fetch Spec Programatically
      • From: George Domurot <email@hidden>
  • Prev by Date: Re: how do I "recompile with deprecation" ?
  • Next by Date: Re: Objective-C with WebObjects?
  • Previous by thread: Re: NON-mysterious EOF problem
  • Next by thread: Re: Seeting WODisplayGroup Fetch Spec Programatically
  • Index(es):
    • Date
    • Thread