Re: WO5.4: Generics for objectsWithFetchSpecification ???
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