FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Integration
(Moderators: fry, REAS)
   XCode & Processing
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: XCode & Processing  (Read 1969 times)
yuko

WWW
XCode & Processing
« on: Aug 10th, 2004, 12:20pm »

hello all,
 
because i've seen some questions regarding this topic i post a small example project which works with XCode 1.5 and the bagel files of Processing 069 (if you wan't to update to a newer version, you could find them inside the exported jar-applet of your project from Processing).
 
download here:
http://preview.sw.ofcd.com/P5/XCodeP5Applet.zip
 
best,
marcus
 
fjen

WWW
Re: XCode & Processing
« Reply #1 on: Aug 10th, 2004, 1:04pm »

hi, that's very nice ..
 
i downloaded the zip and tried running it, but got:
 
   java.lang.NoClassDefFoundError: BApplet
 
- maybe cause the alias inside bagel is broken? ..
- the build folder is created inside the XCodeP5Applet folder not inside bagle (where your last build resides)? ...
 
could you explain how to set up xcode from the begining?
« Last Edit: Aug 10th, 2004, 1:04pm by fjen »  
fjen

WWW
Re: XCode & Processing
« Reply #2 on: Aug 10th, 2004, 1:34pm »

ok. got it to work ...  
- added the bagel folder to the xcode-project (drag folder there)
- added all classes from inside bagel to targets->copyfiles
 
yuko

WWW
Re: XCode & Processing
« Reply #3 on: Aug 10th, 2004, 5:50pm »

no there isn't a need to add the bagel folder! it's simply added to the Search Paths (Java Classes).
 
If you now build into the bagel folder everything should work as expected ....
 
btw. if you need a data folder, add it referenced to your project and drag it to your targets Java Resources.
 
sspboyd


Re: XCode & Processing
« Reply #4 on: Aug 10th, 2004, 9:13pm »

What are the benefits of using XCode as your P5 editor? Code completion? Organization?
 
Thanks,
steve
 

gmail.com w/ sspboyd username
skloopy

WWW
Re: XCode & Processing
« Reply #5 on: Aug 10th, 2004, 9:20pm »

Ahhh! Awesome! Thank you Thank you Thank you! Hooray for multiple files and shared libraries!
 
fjen

WWW
Re: XCode & Processing
« Reply #6 on: Aug 11th, 2004, 1:13pm »

i spend some time on getting xcode to work with ant ... works like a charm now and i managed to use toxi's build-file. i'll post a full exmple once i have time to ...
 
a one-click:
- build inside xcode via ant
- run in appletviewer or safari or other browser
(-) or run as presentationmode
 
use your own html code on export to applet, manifest-file created automaticly, ..., ant rocks!
 
i used fink (http://fink.sourceforge.net/) to install ant (smaller, automatic), but it's here as well:
http://ant.apache.org/bindownload.cgi
 
getting xcode to work with ant:
http://www.macdevcenter.com/pub/a/mac/2004/06/01/osx_java.html?page=1
« Last Edit: Aug 11th, 2004, 6:20pm by fjen »  
fjen

WWW
Re: XCode & Processing
« Reply #7 on: Aug 12th, 2004, 7:35pm »

ant build file and xcode project is here:
 
http://www.florianjenett.de/p55/XCodeP5Ant.zip
 
sketch can be run in presentationmode and as applet from xcode.
 
if your creating a new project do the following in xcode:
- xcode: file -> new project -> java -> java tool, click ok.
- xcode: give it a name and choose a good location for it, click finish.
- finder: copy the build.xml from above into the created project-folder.
- xcode: import the build.xml into your project.
- ...: delete the default target and executables.
- ...: project -> create new target -> special targets -> external target, click ok. give it a name, click finish.
- ...: select target (make sure editor is on), set custom build command -> build tool to point to your ant installation (/usr/bin/ant)
- ...: scoll down and delete all build settings except for PRODUCT_NAME.
- ...: select build.xml on the left and edit to fit your project and folder-structure
- ...: make your sketch extend BApplet, edit code, press build. voila!
 
hope this is not too confusing ...
 
/F
 
Pages: 1 

« Previous topic | Next topic »