• 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: Generics Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generics Question


  • Subject: Re: Generics Question
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 20 Dec 2007 20:59:26 -0500

Will someone please help me here?  How do I do the following without getting the pesky warning from Eclipse about unchecked type conversion?

NSArray<NewsKeywords> newsKeywords = EOUtilities.objectsForEntityNamed(EOSharedEditingContext.defaultSharedEditingContext(), "NewsKeywords");
You can't ... None of the EOUtilities methods use static generic declarations.  You will have to add a @SuppressWarning annotation (quickfix will do it for you).  By the way, you should be using entity constants (NewsKeywords.ENTITY_NAME) instead of string literals ("NewsKeywords") ... It will save you one day.

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

References: 
 >Generics Question (From: Jonathan Miller <email@hidden>)

  • Prev by Date: RE: Where is the best dir to put my jdbc.jar?
  • Next by Date: Re: EOModeler: Migration from XCode to WOLips and WO 5.4
  • Previous by thread: Generics Question
  • Next by thread: Re: Generics Question
  • Index(es):
    • Date
    • Thread