Re: [Pythonmac-SIG] Concise documentation for PyObjC?
Thanks for your reply and the reference to the website. I have one point of confusion. There is PyObjC I've snipped out most of the email history to focus on one thing: On Mon, Jul 30, 2012 at 08:59:57AM +0200, Ronald Oussoren wrote: > > On 29 Jul, 2012, at 0:51, John Velman wrote: > > > I'm on OSX 10.7.4 (and will probably move to 10.8 soon). My XCode is > > 4.3.3. ...[snip] > > > - PyObjC is no longer included in XCode (WRONG). > > That one is actually true, there are no PyObjC templates shipped with Xcode. > > PyObjC is still shipped with OSX though. My claim that this was wrong was based on the following: I have XCode 4.3.3 which is shipped as an application. The PyObjC api is certainly in there, although it is well hidden. I found it by doing find . -iname "*pyobjc*" from the Contents directory of the app. This yields, for example: -- ./Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC -- But Python.framework with in the System/Library, /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python In fact the PyObjC folder in the XCode.app library is *only* a couple .h files, about 20KB, while the folder in the System/Library is extensive and weighs in at about 5 MB. The Python.framework that shows up in my program is actually the one from XCode.app. But Xcode knows how to find what it needs in System, apparently. This is already more than I need to know, but this arrangement helped keep me confused when I was trying to get started. (I don't much care about the templates at the moment.) Thanks again, and also thanks for your work on PyObjC! John Velman ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Concise documentation for PyObjC?
On 29 Jul, 2012, at 0:51, John Velman wrote: > I'm on OSX 10.7.4 (and will probably move to 10.8 soon). My XCode is > 4.3.3. > > I'm writing a minimalist program to examine and edit markdown. Since the > basic program is pretty minimal I want to add plugin extensions. > > I found this excellent example by Steven Degutis, from back in 2010, > (Xcode 3): > (http://www.informit.com/blogs/blog.aspx?uk=Ask-Big-Nerd-Ranch-Adding-Python-Scripting-to-Cocoa-apps) > > Using this as an example, I added a plugin management class (ObjC), and > added a class implemented in Python to execute the plugins. I added > Python.framework to my project in the usual way. I used some Steven Degutis' > plugins to test it. Everything worked with no problem. Very easy! > > (The XCode 4.3.3 application includes Python.framework for both 2.6 and 2.7., > and PyObjC is in there). > > I've looked for documentation with Google, and so far I've learned > > - PyObjC is s.o.l. > - PyObjC is e.o.l. > - There are a million old tutorials on using PyObjC to build a whole > app. > - There is a new version of PyObjC comming out shortly (probably right, > I think I found this on this list) I'm still working on that new release. I'm working it in my spare time, and the project scope is fairly large, which explains why it is moving forward so slowly. > - PyObjC is no longer included in XCode (WRONG). That one is actually true, there are no PyObjC templates shipped with Xcode. PyObjC is still shipped with OSX though. > - PyObjC doesn't work on Lion (WRONG). PyObjC should work just fine on Lion, and Mountain Lion. > > But I can't find any documentation. I'd really like it if someone could > point me to some concise documentation. I don't need GUI templates in IB. > I don't even need Python file templates. And I don't think I want a > tutorial. Just some syntax and semantics for def, @classmethod, other > things that I might need that aren't in the examples. http://pyobjc.sourceforge.net/ contains documentation. The version information on that site is way out of date, but the documentation hasn't changed much since then. > > Since everything works so well and so easily, I'd like to stick with Python > instead of learning Lua, using AppleScript, or any of 100 other possible > solutions. > > Thanks, > > John Velman > ___ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG smime.p7s Description: S/MIME cryptographic signature ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Concise documentation for PyObjC?
First, I'll apologize for the frustrated tone of my previous message, but there is sure a lot of noise out there. I finally found the PyObjC website (via wikipedia). I'm amazed that no combination of keywords I tried before turned it up, at least on the first few pages. The PyObjC site seems to have everything I want! Best, John Velman (original message not included) ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
[Pythonmac-SIG] Concise documentation for PyObjC?
I'm on OSX 10.7.4 (and will probably move to 10.8 soon). My XCode is 4.3.3. I'm writing a minimalist program to examine and edit markdown. Since the basic program is pretty minimal I want to add plugin extensions. I found this excellent example by Steven Degutis, from back in 2010, (Xcode 3): (http://www.informit.com/blogs/blog.aspx?uk=Ask-Big-Nerd-Ranch-Adding-Python-Scripting-to-Cocoa-apps) Using this as an example, I added a plugin management class (ObjC), and added a class implemented in Python to execute the plugins. I added Python.framework to my project in the usual way. I used some Steven Degutis' plugins to test it. Everything worked with no problem. Very easy! (The XCode 4.3.3 application includes Python.framework for both 2.6 and 2.7., and PyObjC is in there). I've looked for documentation with Google, and so far I've learned - PyObjC is s.o.l. - PyObjC is e.o.l. - There are a million old tutorials on using PyObjC to build a whole app. - There is a new version of PyObjC comming out shortly (probably right, I think I found this on this list) - PyObjC is no longer included in XCode (WRONG). - PyObjC doesn't work on Lion (WRONG). But I can't find any documentation. I'd really like it if someone could point me to some concise documentation. I don't need GUI templates in IB. I don't even need Python file templates. And I don't think I want a tutorial. Just some syntax and semantics for def, @classmethod, other things that I might need that aren't in the examples. Since everything works so well and so easily, I'd like to stick with Python instead of learning Lua, using AppleScript, or any of 100 other possible solutions. Thanks, John Velman ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG