Re: packages?
Re: packages?
- Subject: Re: packages?
- From: Jeffrey Pearson <email@hidden>
- Date: Mon, 10 Apr 2006 10:30:43 -0700
Thanks Chuck. I keep thinking in the IntelliJ way in which the tree
pane is a reflection of your actual file structure on drive.....
bad brain...bad brain...
Hopefully, it's dumb ass questions like mine that are being used for
fodder for your upcoming book which I am impatiently looking forward
to with hands rubbing together and baited breath......
Jeff
On Apr 10, 2006, at 10:10 AM, Chuck Hill wrote:
On Apr 9, 2006, at 3:13 PM, Jeffrey Pearson wrote:
OK. Ive searched the docs and the newly purchased and cracked
spine of the Wrox WO book (just got it from Amazon yesterday..whoo
hoo..) and google is not pulling back what I'm looking for (or
maybe I just don't know how the phrase my query correctly).
In my 'normal' java web apps, I have my classes organized into
packages as per best practices for java. I'm trying to do the same
thing with the WO app.
So I created a folder in my project "com". In that folder, I
created a folder called "metrohero". In that folder, I created a
folder called "entities".
I then created the java class from with EOModeler and saved in the
entities folder.
In XCode I selected "add existing files...". I selected the top
level folder ("com") and gave it the application server target.
Everything looks happy happy. I even made sure to add in the first
line of the java class that was created from EOModeler the package
com.metrohero.entities line.
I will give you a third answer. :-) I keep all my Java files in
the "normal" Java way as you have described above. I find Xcode's
preferred "everything in one massive pile" too annoying to want to
deal with. Apparently Art's room is even messier than mine! ;-)
In Xcode, I create a new Group under Classes. Just leave it named
New Group for now. Open the Inspector for that group. Set the
Path Type to "Relative to Enclosing Group". Then click the Choose
button for the path and select the entities folder that has your
class in it. Once that is done, I rename the Group to
com.metrohero.entities. Close the inspector. Then right click on
the new group and select Add Existing Files. Xcode should then
show the files in that folder. You can, if you wish do this
creating one group for com, a nested one for metrohera etc. But
who needs the aggravation of opening and closing even more groups?
However, when I compile, it says the class is not found. When I do
a get info on the com directory in xcode, I get the proper target.
But when I go down to metrohero or below level, it does not have
any target. I know this is what my problem is. Issue is, I cannot
figure out how to assign the lower levels to a target.
HTH
Chuck
--
Coming in 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/
practical_webobjects
_______________________________________________
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