Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Using XCode to compile python app for jaguar?

Using XCode to compile python app for jaguar?
Thread Tools
Mac Enthusiast
Join Date: Oct 2003
Location: UK
Status: Offline
Reply With Quote
Apr 6, 2004, 04:30 AM
 
I've got an xcode project written in python. It's not my project, but I can compile it and get a working .app for panther, that works fine on other mac's that don't have the sourcecode or python installed on them. But I've heard from others that when they try to use this in jaguar it just doesn't work.

Is there a setting somewhere in xcode that I can change, that will allow me to compile it for jaguar as well?

I realise this is a bit vague, if you need anymore information, ask away. I'm new to xcode, but I'm reasonably experienced in OS X and programming in java, so I'm not completely clueless (I hope ).
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Apr 6, 2004, 07:21 PM
 
The only setting that comes to mind is actually in Project Builder--the format of the nib file. I believe it's in the last tab of the main nib window.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Apr 7, 2004, 09:33 AM
 
I thought I remembered that Python was included in Panther by default, but not Jaguar?

And I also thought that Python was interpreted, like perl. How are you compiling this app?
     
Thorin  (op)
Mac Enthusiast
Join Date: Oct 2003
Location: UK
Status: Offline
Reply With Quote
Apr 7, 2004, 11:34 AM
 
Originally posted by absmiths:
I thought I remembered that Python was included in Panther by default, but not Jaguar?

And I also thought that Python was interpreted, like perl. How are you compiling this app?
I'm using the build command in xcode. If python is indeed interpreted, then my use of the word "compile" is obviously misleading. The project consists of some .nib files which are obviously the menus and stuff, and some .h and .m files that import cocoa and python at the start. Not knowing any python, I'm assuming that these are written in python, but I'm not sure.
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Apr 8, 2004, 09:48 AM
 
He is probably using PyObjC... it is similar to AppleScript Studio in that the central code is in a scripting language, but the bindings are all in ObjC (behind the curtains). You do have to compile the project, but no Python code gets compiled.

And to get at the heart of the question: Without installing special packages on 10.2, PyObjC projects are more of a 10.3 thing.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2