2006/11/01

Intel inside: first view

I'd just acquired my first Intel Mac; a modest 17" super iMac running a 2 GHz Xeon. My first surprise was to find Xcode 2.4 with WO included. My second surprise was to find out that Cocoa EO remains there; even more surprising was that, by importing and compiling an "old" Cocoa EO project, the app simply runs... this means that the Java Bridge remains there which implies, by the way, that I can slow down my discovery on how to replace it.

The bad news is that new projects —created inside the Intel machine— does not compile (yet) in a PPC machine... I am not sure about the reasons, but I will find out!

For the record: to start a new Cocoa EO app inside this new machine was not straight forward. Here the steps to accomplish this.


1. install Xcode and WebObjects.
2. run Interface Builder and import the EnterpriseObjects.palette (which is inside /Developer/Extras/Palettes).
3. create or import an EOModel.
4. in Finder, go to
/Library/Application Support/Apple/Developer Tools/Project Templates/Application/Cocoa-Java Application/
and change the extension of the file —indeed the folder— CocoaApp.xcodeproj to .pbproj .
5. run Xcode and create a new project of type
Cocoa Enterprise Objects Application
and follow the wizard's instructions.
6. define your interface and add your code.
7. compile and run.


One more thing... for me was more convenient to change a Preference: in the File Types pane, change the folders>wrapper>wraper.eomodel to be edited with EOModeler (which is inside the folder /Developer/Applications/WebObjects/).

Suerte!