• 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: WO5.4: Generics for objectsWithFetchSpecification ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO5.4: Generics for objectsWithFetchSpecification ???


  • Subject: Re: WO5.4: Generics for objectsWithFetchSpecification ???
  • From: Mike Schrag <email@hidden>
  • Date: Mon, 7 Jan 2008 09:53:34 -0500

How do solve this without having to suppress generics warnings:

array = editingContext.objectsWithFetchSpecification(spec);

and

array = instance.valueForKey("key");

where

NSArray<EOEnterpriseObject> array;
You cannot right now ... Either EOFetchSpec would have to be genericized with the objects that it will return as well has having ec.objectsWithFetchSpec genericized probably with a single method generic to do it. As far as valueForKey, I don't think there's any way to make that generic in any meaningful way -- you're essentially performing reflection, so I suspect you will never see a generic version of that.

ms

_______________________________________________
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: WO5.4: Generics for objectsWithFetchSpecification ???
      • From: Anjo Krank <email@hidden>
References: 
 >WO5.4: Generics for objectsWithFetchSpecification ??? (From: Gaastra Dennis - WO Lists <email@hidden>)

  • Prev by Date: Re: Displaying an EO decently in the Eclipse debugger
  • Next by Date: Re: What's a good way to handle orders?
  • Previous by thread: WO5.4: Generics for objectsWithFetchSpecification ???
  • Next by thread: Re: WO5.4: Generics for objectsWithFetchSpecification ???
  • Index(es):
    • Date
    • Thread