• 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: XCode problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode problem?


  • Subject: Re: XCode problem?
  • From: Michael Engelhart <email@hidden>
  • Date: Fri, 4 Jun 2004 15:10:40 -0500

id isn't defined anywhere in the method so why would it compile correctly?

NSMutableDictionary defines setObjectForKey as:
public void setObjectForKey(Object object,
                            Object key)

id isn't an Object in the example you've given.

If you changed id to "id" and made it a string object it would compile fine


Mike On Jun 4, 2004, at 2:58 PM, Justin Tocci wrote:

Ok guys, now can I be sure I have a problem in Xcode? Here is the code:

	public NSArray detailForItem() {
		Session session = (Session)session();

		NSMutableDictionary args = new NSMutableDictionary();
>		args.setObjectForKey(id, "personID");

return EOUtilities.objectsWithFetchSpecificationAndBindings(session().defaultE ditingContext(),
"Tdrawing",
"drawingDetail",
(NSDictionary)args);
}


XCode refuses to build this, marks the line with the greater than symbol and the error says "cannot resolve symbol : variable id". All I'm doing is building an NSDictionary, why would it try to resolve it as a variable?

Anyone have any ideas other than use Eclipse and WOLips? Or am I going to spend my weekend learning how to install and use another IDE :-(

justin
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >XCode problem? (From: Justin Tocci <email@hidden>)

  • Prev by Date: Finally! fetch and sort w/o a display group
  • Next by Date: Re: XCode problem?
  • Previous by thread: XCode problem?
  • Next by thread: Re: XCode problem?
  • Index(es):
    • Date
    • Thread