• 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: Colin Clark <email@hidden>
  • Date: Fri, 4 Jun 2004 16:36:34 -0400

Hi Justin,

I think you're blaming XCode for pilot error here. Sure, you're trying to add a key-value pair to a dictionary, but you're still referring to "id" as a variable. You don't have it defined anywhere within the code fragment you posted. What are you trying to add to this dictionary?

I noticed that you're also calling this line:

Session session = (Session)session();

But then never actually using this variable anywhere in your code. It's unnecessary unless you're using custom methods or ivars defined in your WOSession subclass. If you're just calling a framework-defined method such as defaultEditingContext()--as you do later in your code--you don't need to define a local session variable.


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?

Just to clarify this, XCode is an IDE that uses the standard Java compiler, javac. You're getting simple javac compiler messages that are legitimate errors that need to be fixed before your code is even going to compile, much less actually work. Although some seem to have complaints about XCode, these aren't the problems you're encountering.


I've been following your posts recently on the list, and have noticed that a number of the issues you're struggling with seem to be related to your understanding of Java. I know you've got a big deadline, but perhaps when that's finished you'd find it helpful to work through a good Java tutorial, independently of anything specific to WebObjects. I often recommend "Beginning Java Objects" by Jacquie Barker, as it conveys a firm foundation in object-oriented design, which is essential to understand the design patterns at work in WebObjects.

Hope that helps,

Colin
_______________________________________________
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: Re: XCode problem?
  • Next by Date: Re: Finally! fetch and sort w/o a display group
  • Previous by thread: Re: XCode problem?
  • Next by thread: Finally! fetch and sort w/o a display group
  • Index(es):
    • Date
    • Thread