• 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: Lachlan Deck <email@hidden>
  • Date: Mon, 14 Jan 2008 15:03:11 +1100

On 14/01/2008, at 2:13 PM, Mr. Pierre Frisch wrote:

I am still worried about breaking code.

Sure. Good concern.

I was more looking along the lines of adding a method like:
public NSArray<EOEnterpriseObject> _enterpriseObjectsWithFetchSpecification(EOFetchSpecification fetchSpecification, EOEditingContext context)
This method raises an exception at run time if the fetch specification is raw.
I am not sure if this should be a public method it adds to the API and is not absolutely required.

The problem here is that <EOEnterpriseObject> doesn't take it's type from anything and so can't be cast to some subtype without suppressing warnings. So what purpose would it serve?


It seems to me that EOFetchSpecification needs to be genericised or this whole thing won't be pretty.

Any comments?

So, to ensure backwards api compatibility how's about this?

@deprecated
public NSArray objectsWithFetchSpecification(EOFetchSpecification fetchSpec) {...}
public NSArray<T> enterpriseObjectsWithFetchSpecification (EOFetchSpecification<T> fetchSpec) {...}
public NSArray<NSDictionary<String, ?>> rawObjectsWithFetchSpecification(EOFetchSpecification fetchSpec) {....}


with regards,
--

Lachlan Deck

_______________________________________________
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: "John Huss" <email@hidden>
References: 
 >WO5.4: Generics for objectsWithFetchSpecification ??? (From: Gaastra Dennis - WO Lists <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: Mike Schrag <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: Anjo Krank <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: Mike Schrag <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: "Mr. Pierre Frisch" <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: Mike Schrag <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: "Mr. Pierre Frisch" <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: Lachlan Deck <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: Lachlan Deck <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: "Mr. Pierre Frisch" <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: Lachlan Deck <email@hidden>)
 >Re: WO5.4: Generics for objectsWithFetchSpecification ??? (From: "Mr. Pierre Frisch" <email@hidden>)

  • Prev by Date: Re: JavaEOGenerator generates no files...
  • Next by Date: Re: JavaEOGenerator generates no files...
  • Previous by thread: Re: WO5.4: Generics for objectsWithFetchSpecification ???
  • Next by thread: Re: WO5.4: Generics for objectsWithFetchSpecification ???
  • Index(es):
    • Date
    • Thread