Re: XCode problem?
Re: XCode problem?
- Subject: Re: XCode problem?
- From: Art Isbell <email@hidden>
- Date: Fri, 4 Jun 2004 10:11:57 -1000
On Jun 4, 2004, at 9:58 AM, 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 :-(
This problem has nothing to do with Xcode and everything to do with
your Java code. The error message is produced by your compiler, either
javac or jikes, not by Xcode. You'd experience the same error
regardless of the IDE you use.
You simply cannot reference a variable, id, unless it has been
declared within the scope of its reference.
Aloha,
Art
_______________________________________________
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.