Re: [Pythonmac-SIG] a beginner's list

2006-02-08 Thread David Reed
On Feb 8, 2006, at 1:40 PM, linc wrote: >> >> Full disclosure: I'm a UNIX person. The first thing >> I do when I get a >> new Mac is make sure X11 is installed on it, and >> in my >> Login Items. >> The second thi

[Pythonmac-SIG] xcode/pyobjc

2005-11-17 Thread David Reed
I'm getting ready to attempt my first real Cocoa app. I notice XCode has an option for creating pyobjc apps (when it asks you what type of app you want to create). I tried this but am not certain I'm using it correctly - build and go is not active. I did go into the directory and type "pyth

Re: [Pythonmac-SIG] book recommendation

2005-11-15 Thread David Reed
On Nov 15, 2005, at 4:50 PM, Dethe Elza wrote: Hi David, While no one book covers all of Cocoa, going through a book can help give you a "feel" for how Cocoa programs come together. I've often caught myself making things *way* more difficult than they need to be before I discovered the

[Pythonmac-SIG] book recommendation

2005-11-14 Thread David Reed
I've an experienced Python programmer on Linux - I've mainly used gtk and glade for interfaces and now I'm slowly trying to get started with Cocoa apps on X-Code. I've got the CurrencyConverter example working in Python and I did the HelloWorld example in "The Mac XCode 2 Book" by Cohen and

Re: [Pythonmac-SIG] PyObjC vs "old school" embedding

2005-05-31 Thread David Reed
On May 31, 2005, at 6:54 PM, Bob Ippolito wrote: > > On May 31, 2005, at 2:27 PM, David Reed wrote: > > >> >> On May 31, 2005, at 4:51 PM, Bob Ippolito wrote: >> >> >> >>> >>> On May 31, 2005, at 1:17 PM, [EMAIL PROTECTED] wrote: >

Re: [Pythonmac-SIG] PyObjC vs "old school" embedding

2005-05-31 Thread David Reed
On May 31, 2005, at 4:51 PM, Bob Ippolito wrote: > > On May 31, 2005, at 1:17 PM, [EMAIL PROTECTED] wrote: > >> (* - I've downloaded and installed PyObjC 1.3.6 twice but for some >> reason it doesn't want to use it: >> >> gandreas% /Library/Frameworks/Python.framework/Versions/Current/bin/ >>

Re: [Pythonmac-SIG] Spotlight and Python

2005-05-11 Thread David Reed
On May 11, 2005, at 2:12 PM, Jonathan Wight wrote: > For me it worked: > > "org_python_functions" = ("get_bits", "set_lsb", "get_lsb", > "value_from_bits"); > > But then I just made a new BBEdit Bits.py file and pasted your code > into it. > > The importer does seem to be crashing, but I'

Re: [Pythonmac-SIG] Spotlight and Python

2005-05-11 Thread David Reed
On May 11, 2005, at 11:06 AM, Jonathan Wight wrote: > It is entirely possible I screwed something up and that it doesn't > work on anything other than my Powerbook ;-) > > However: > > As the last part of the install process the installer kicks off a > script to reindex the Python files on th

Re: [Pythonmac-SIG] Spotlight and Python

2005-05-11 Thread David Reed
On May 11, 2005, at 2:28 AM, Jonathan Wight wrote: > OK. The first version is online at: > > http://toxicsoftware.com/_private/Python%20Metadata%20Importer.pkg.zip > > The installer installs the mdimporter to /Library/Spotlight/ and > then calls mdimport -r to force Spotlight to reindex all Pyt

Re: [Pythonmac-SIG] Spotlight and Python

2005-05-10 Thread David Reed
On May 10, 2005, at 8:52 PM, Jonathan Wight wrote: > I've made a first pass at it and have a Spotlight importer that > calls a built-in Python function to import a file's metadata. > > I started to look at module inspect to find out how to extract > information from a Python module but then r

Re: [Pythonmac-SIG] Spotlight and Python

2005-05-10 Thread David Reed
On May 10, 2005, at 3:57 PM, Jacob Kaplan-Moss wrote: > On May 10, 2005, at 2:00 PM, Jonathan Wight wrote: > > >> I'm not sure how useful it is to index function & class names though. >> >> > > Oh, I disagree -- I've got over 100K lines of code, and I would > *kill* to be able to find everywhere

Re: [Pythonmac-SIG] Spotlight and Python

2005-05-10 Thread David Reed
On May 10, 2005, at 12:01 PM, Jonathan Wight wrote: > It's certainly a good idea. > > Writing a Spotlight plug-in is extremely straight forward - just > fire up Xcode 2 and create a new "Metadata Importer" project. You > just have one function that you need to provide: > > Boolean GetMetadata

Re: [Pythonmac-SIG] py2app and CLI Python programs

2005-05-10 Thread David Reed
On May 10, 2005, at 1:28 PM, Bob Ippolito wrote: > On May 10, 2005, at 11:29 AM, Robert Kern wrote: > > >> David Reed wrote: >> >> >>> I've got a command line Python app that I tried packaging up with >>> py2app. It worked ok - t could cd into th

[Pythonmac-SIG] Spotlight and Python

2005-05-10 Thread David Reed
I noticed Spotlight doesn't index Python files. I'm not certain how useful it would be but I was thinking about trying to get spotlight to index the name of classes and functions/methods (i.e., you could enter a class name and spotlight would find the Python file containing the class). I do

[Pythonmac-SIG] py2app and CLI Python programs

2005-05-10 Thread David Reed
I've got a command line Python app that I tried packaging up with py2app. It worked ok - t could cd into the subdir of the .app containing the executable and run it from the command line, but I'm not certain what its current working directory was since when I tried to specify a file on the

Re: [Pythonmac-SIG] building non-Framework Python 2.4.1 on Tiger

2005-05-04 Thread David Reed
On May 4, 2005, at 7:30 PM, Bob Ippolito wrote: As far as friends scaring you off.. I dunno, maybe they didn't know what they were doing when they tried it, or they were bitten by some problem that has been solved long since. The only "incompatibility" with framework builds is that stupid extensio

Re: [Pythonmac-SIG] XML handler design

2005-03-24 Thread David Reed
On Mar 24, 2005, at 8:35 AM, [EMAIL PROTECTED] wrote: David Reed wrote: There's probably a better mailing list with XML parsing experts. I'm certainly not an expert but have done a little XML parsing. I've always followed the pattern of using startElement, characters and endElement

Re: [Pythonmac-SIG] problem creating first pyobjc file

2005-03-23 Thread David Reed
On Mar 23, 2005, at 4:53 PM, Bob Ippolito wrote: On Mar 23, 2005, at 4:40 PM, David Reed wrote: I'm a Linux refugee familiar used to programming pygtk apps with glade and decided to see how to make Cocoa apps. I downloaded the pybobc 1.3b1 and py2app that Bob announced about a week ago

[Pythonmac-SIG] problem creating first pyobjc file

2005-03-23 Thread David Reed
I'm a Linux refugee familiar used to programming pygtk apps with glade and decided to see how to make Cocoa apps. I downloaded the pybobc 1.3b1 and py2app that Bob announced about a week ago. I'm following the tutorial and go to the step where I'm supposed to run: /usr/bin/python setup.py py

Re: [Pythonmac-SIG] Won't Install Numarray-1.1.1 or Numeric_23.6

2004-12-08 Thread David Reed
On Dec 7, 2004, at 11:57 AM, Benjamin Abécassis wrote: Hi everyone, I can't install Numarray-1.1.1 or Numeric_23.6 After typing, python setup.py install it tells, error: command 'gcc' failed with exit status 1 Here is the complete log : running install running build running build_py running build_e