• 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
java object definition question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

java object definition question


  • Subject: java object definition question
  • From: email@hidden
  • Date: Mon, 1 Sep 2008 21:45:43 -0700 (PDT)

This is actually a java question, I hope it is not too basic a question...

NSMutableArray args = new NSMutableArray();
args.addObject(theSelectedManufacturer.id());
EOQualifier qual = EOQualifier.qualifierWithQualifierFormat("manufacturerID = %d", args);
fetchResult = Asset.fetchAssets(ERXEC.newEditingContext(), qual, null);


When creating an NSMutableArray like this Eclipse is complaining that it is a 'Raw' type and should be parameterized. So I read as much as I could and found that "NSMutableArray<?>" works to remove the error from the first element but not for the second ie

NSMutableArray<?> args = new NSMutableArray();
args.addObject(theSelectedManufacturer.id());

but like this addObject complains that it is not applicable for the arguments.

I guess the question is, what is the correct method to create the new mutable array and then populate it. The first example above works. It's just that I get the errors (I could suppress the errors). I want to learn how to do it better.

Ted




 _______________________________________________
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: java object definition question
      • From: Ramsey Gurley <email@hidden>
    • Re: java object definition question
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: WebObjects/WOnder CSS and Image path issues
  • Next by Date: Re: java object definition question
  • Previous by thread: Re: WebObjects/WOnder CSS and Image path issues
  • Next by thread: Re: java object definition question
  • Index(es):
    • Date
    • Thread