[Pythonmac-SIG] AppScript, Quarks print_ command broken on Tiger

2005-07-04 Thread Peter Waibel
Hi all, executing the following code fails on Tiger 4.1, Xpress 6.x: #!/usr/bin/pythonw from appscript import * qxp = app('QuarkXPress') qxp.documents[1].print_() Xpress will quit unexpectedly. Console: Command: QuarkXPress Path:/Applications/QuarkXPress

[Pythonmac-SIG] Right init method

2005-07-04 Thread Aldo Bergamini
Dear list, I have decided to try to practice pyObjC by translating (or trying to..) the Objective-C examples of Aaron Hillegass' Cocoa Programming for MacOS X, as I need to get up to date on Cocoa through Python. I am trying to figure out how to translate the obj-C init method of the SpeakLine

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Jacob Kaplan-Moss
Aldo -- PyObjC classes (that is, Python classes that extend ObjC ones, like you're trying there) don't use the standard __init__ mechanism (at least, not in a useful way). They do use the standard alloc/init mechanism from ObjC, so you're on the right track in your last try: def

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Bob Ippolito
On Jul 4, 2005, at 6:23 AM, Jacob Kaplan-Moss wrote: Aldo -- PyObjC classes (that is, Python classes that extend ObjC ones, like you're trying there) don't use the standard __init__ mechanism (at least, not in a useful way). They do use the standard alloc/init mechanism from ObjC, so

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Jacob Kaplan-Moss
On Jul 4, 2005, at 12:39 PM, Bob Ippolito wrote: Also, READ THE DOCS and examples please, this is most definitely covered a thousand times :) Lighten up, Bob; this isn't explicitly mentioned anywhere -- it only shows up once in a comment on the intro page (http://

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Bob Ippolito
On Jul 4, 2005, at 9:31 AM, Jacob Kaplan-Moss wrote: On Jul 4, 2005, at 12:39 PM, Bob Ippolito wrote: Also, READ THE DOCS and examples please, this is most definitely covered a thousand times :) Lighten up, Bob; this isn't explicitly mentioned anywhere -- it only shows up once in a

[Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Jacob Kaplan-Moss
On Jul 4, 2005, at 2:31 PM, Jacob Kaplan-Moss wrote: Perhaps this one should be added to the FAQ? ... which, I now see, doesn't seem to exist (http:// pyobjc.sourceforge.net/faq/ is a 404). Should we write one? I'm happy to coordinate putting one together if people want to send me

Re: [Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Bob Ippolito
On Jul 4, 2005, at 9:48 AM, Jacob Kaplan-Moss wrote: On Jul 4, 2005, at 2:31 PM, Jacob Kaplan-Moss wrote: Perhaps this one should be added to the FAQ? ... which, I now see, doesn't seem to exist (http:// pyobjc.sourceforge.net/faq/ is a 404). Should we write one? I'm happy to

Re: [Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Dethe Elza
There is a FAQ on the macpython wiki: http://www.pythonmac.org/wiki/FAQ It seems to have been rather drastically refactored, I remember there being many more questions before. --Dethe On 4-Jul-05, at 1:43 PM, Bob Ippolito wrote: On Jul 4, 2005, at 9:48 AM, Jacob Kaplan-Moss wrote: On

Re: [Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Bob Ippolito
It's not refactored, someone truncated it. On Jul 4, 2005, at 12:54 PM, Dethe Elza wrote: There is a FAQ on the macpython wiki: http://www.pythonmac.org/wiki/FAQ It seems to have been rather drastically refactored, I remember there being many more questions before. --Dethe On 4-Jul-05,

Re: [Pythonmac-SIG] Xcode fixes

2005-07-04 Thread Ronald Oussoren
On 3-jul-2005, at 23:07, Jonathan 'Wolf' Rentzsch wrote: It would be super if sometime over the next two or three weeks there could be an official release with these changes (assuming no one minds them, of course). I want to make my text to make it look so easy to pick up PyObjC, that