pyobjc-dev Mailing List for PyObjC (Page 232)
Brought to you by:
ronaldoussoren
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(1) |
Feb
(2) |
Mar
(3) |
Apr
(30) |
May
(18) |
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2002 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
|
Sep
(23) |
Oct
(180) |
Nov
(291) |
Dec
(95) |
2003 |
Jan
(338) |
Feb
(352) |
Mar
(97) |
Apr
(46) |
May
(226) |
Jun
(184) |
Jul
(145) |
Aug
(141) |
Sep
(69) |
Oct
(161) |
Nov
(96) |
Dec
(90) |
2004 |
Jan
(66) |
Feb
(87) |
Mar
(98) |
Apr
(132) |
May
(115) |
Jun
(68) |
Jul
(150) |
Aug
(92) |
Sep
(59) |
Oct
(52) |
Nov
(17) |
Dec
(75) |
2005 |
Jan
(84) |
Feb
(191) |
Mar
(133) |
Apr
(114) |
May
(158) |
Jun
(185) |
Jul
(62) |
Aug
(28) |
Sep
(36) |
Oct
(88) |
Nov
(65) |
Dec
(43) |
2006 |
Jan
(85) |
Feb
(62) |
Mar
(92) |
Apr
(75) |
May
(68) |
Jun
(101) |
Jul
(73) |
Aug
(37) |
Sep
(91) |
Oct
(65) |
Nov
(30) |
Dec
(39) |
2007 |
Jan
(24) |
Feb
(28) |
Mar
(10) |
Apr
(2) |
May
(18) |
Jun
(16) |
Jul
(21) |
Aug
(6) |
Sep
(30) |
Oct
(31) |
Nov
(153) |
Dec
(31) |
2008 |
Jan
(63) |
Feb
(70) |
Mar
(47) |
Apr
(24) |
May
(59) |
Jun
(22) |
Jul
(12) |
Aug
(7) |
Sep
(14) |
Oct
(26) |
Nov
(5) |
Dec
(5) |
2009 |
Jan
(10) |
Feb
(41) |
Mar
(70) |
Apr
(88) |
May
(49) |
Jun
(62) |
Jul
(34) |
Aug
(15) |
Sep
(55) |
Oct
(40) |
Nov
(67) |
Dec
(21) |
2010 |
Jan
(60) |
Feb
(17) |
Mar
(26) |
Apr
(26) |
May
(29) |
Jun
(4) |
Jul
(21) |
Aug
(21) |
Sep
(10) |
Oct
(12) |
Nov
(3) |
Dec
(19) |
2011 |
Jan
(3) |
Feb
(13) |
Mar
(8) |
Apr
(8) |
May
(17) |
Jun
(20) |
Jul
(21) |
Aug
(7) |
Sep
|
Oct
|
Nov
(9) |
Dec
(11) |
2012 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
(4) |
Jun
(14) |
Jul
(5) |
Aug
(2) |
Sep
(15) |
Oct
(2) |
Nov
(23) |
Dec
(1) |
2013 |
Jan
(8) |
Feb
(1) |
Mar
|
Apr
|
May
(5) |
Jun
(1) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(12) |
Nov
(10) |
Dec
(3) |
2014 |
Jan
(7) |
Feb
(14) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(11) |
Jul
(10) |
Aug
(4) |
Sep
|
Oct
(8) |
Nov
(1) |
Dec
(2) |
2015 |
Jan
(9) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(7) |
Jun
|
Jul
(5) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2016 |
Jan
(1) |
Feb
(1) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
|
Jul
(6) |
Aug
(8) |
Sep
(21) |
Oct
(17) |
Nov
|
Dec
(36) |
2017 |
Jan
(6) |
Feb
(2) |
Mar
(4) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(6) |
2018 |
Jan
(2) |
Feb
(3) |
Mar
(3) |
Apr
(14) |
May
(2) |
Jun
(2) |
Jul
(4) |
Aug
(3) |
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
(6) |
2019 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
(1) |
2021 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(5) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2025 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dinu G. <gh...@da...> - 2003-06-18 12:12:04
|
Hi, I also have some trouble with sheets... apparently the specified se- lectors are not called properly by an alert sheet, although calling the selectors manually using performSelector_withObject_withObject_() seems to work ok (ideally one would need another withObject_ parameter, though...). This is the function intended to make a sheet: def makeAlertSheet(title, msg, info, window, delegate, default=None, alternate=None, other=None): endSel = NSSelectorFromString("sheetDidEnd:returnCode:contextInfo:") dismissSel = NSSelectorFromString("sheetDidDismiss:returnCode:contextInfo:") # the following prints 1 (ok, same for dismissSel) print "respondsToSelector_", delegate.respondsToSelector_(endSel) # the following prints something like <NSWindow: 0xc2dcc0> 99 99 # (sort of ok, same for dismissSel) delegate.performSelector_withObject_withObject_(endSel, window, 99) # this crashes when clicking the OK button in the sheet NSBeginAlertSheet(title, default, alternate, other, window, delegate, endSel, dismissSel, info, msg) Here are the methods intended to be called by the sheet: class MyDocController(...): def sheetDidEnd_returnCode_contextInfo_(self, sheet, returnCode, info): print "sheetDidEnd_returnCode_contextInfo_", sheet, returnCode, info def sheetDidDismiss_returnCode_contextInfo_(self, sheet, returnCode, info): print "sheetDidDismiss_returnCode_contextInfo_", sheet, returnCode, info And this is how the function is called on the top-level (info==0 b/c "an integer is required"...): makeAlertSheet("title", "msg", 0, theWindow, self) Any clue? Thanks, Dinu -- Dinu C. Gherman ...................................................................... "One of the great things about books is sometimes there are some fantastic pictures." (George W. Bush, 3 Jan. 2000) |
From: Etienne P. <ep...@ep...> - 2003-06-18 09:29:15
|
On Wednesday, Jun 18, 2003, at 11:01 Europe/Amsterdam, Just van Rossum wrote: > nice to get together sometime to chat about PyObjC. So: if you're going > to EuroPython, post a note here; if there's more than the four of us > wanting to get together we should perhaps organize something... I will be going too, so count me in. gr. EP |
From: Just v. R. <ju...@le...> - 2003-06-18 09:01:39
|
Here's a little reminder: next week is EuroPython (http://www.europython.org/), the affordable Python conference in lovely Belgium. I'm going to be there, and so are Ronald, Jack and Dinu. It would be nice to get together sometime to chat about PyObjC. So: if you're going to EuroPython, post a note here; if there's more than the four of us wanting to get together we should perhaps organize something... Just |
From: Dinu G. <gh...@da...> - 2003-06-18 08:31:08
|
Just van Rossum: > def action_(self, sender): > if sender.clickedRow() != -1: > return > col = sender.tableColumns()[sender.clickedColumn()] > sender.setHighlightedTableColumn_(col) Yep! Thanks - pretty obvious, too... ;-) Dinu -- Dinu C. Gherman ...................................................................... "If something is repeated over and over as obvious, the chances are that it is obviously false." (Noam Chomsky) |
From: Just v. R. <ju...@le...> - 2003-06-18 07:48:11
|
Dinu Gherman wrote: > My turn now... ;-) Does anybody know how to set what I suppose to be > an NSTableHeaderCell's background color to the "selected" or "high- > lighted" color (usually a blue gradient) after selecting a column, > like you do in Mail.app, say? > > I'm using an NSTableView, but clicking on the column header cells for > reordering the rows does not change the respective header cell color > to anything blueish... (I tried searching for this in Cocoa-Dev, but > without success...) This work for me: def action_(self, sender): if sender.clickedRow() != -1: return col = sender.tableColumns()[sender.clickedColumn()] sender.setHighlightedTableColumn_(col) (action_ is the target action for the table view, so sender is the table view.) Just |
From: Dinu G. <gh...@da...> - 2003-06-17 22:57:30
|
Jack Jansen: > Thanks, that did it! I could have guessed it, really... My turn now... ;-) Does anybody know how to set what I suppose to be an NSTableHeaderCell's background color to the "selected" or "high- lighted" color (usually a blue gradient) after selecting a column, like you do in Mail.app, say? I'm using an NSTableView, but clicking on the column header cells for reordering the rows does not change the respective header cell color to anything blueish... (I tried searching for this in Cocoa-Dev, but without success...) Thanks, Dinu -- Dinu C. Gherman ...................................................................... "The pure and simple truth is rarely pure and never simple." (Oscar Wilde) |
From: Jack J. <Jac...@cw...> - 2003-06-17 21:02:59
|
On dinsdag, jun 17, 2003, at 16:22 Europe/Amsterdam, Dinu Gherman wrote: > Jack Jansen: > >> I assume there's a way to go from the >> button to the window to the document, but I don't know >> enough Cocoa to do this. > > Untested from memory... have you tried this? > > def foo_(self, buttonSender): > controller = buttonSender.window().windowController() Thanks, that did it! I could have guessed it, really... -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |
From: Dinu G. <gh...@da...> - 2003-06-17 14:20:38
|
Jack Jansen: > I assume there's a way to go from the > button to the window to the document, but I don't know > enough Cocoa to do this. Untested from memory... have you tried this? def foo_(self, buttonSender): controller = buttonSender.window().windowController() Dinu -- Dinu C. Gherman ...................................................................... "I think we ought to raise the age at which juveniles can have a gun." (George W. Bush, 18 Oct. 2000) |
From: Jack J. <Jac...@cw...> - 2003-06-17 14:11:37
|
Folks, I think I'm 90% done with the example of embedding Python in an existing ObjC application, but I need a little Cocoa help. Let me first say how I'm doing it. I start with a perfectly normal ObjC PB Project (SimpleComboBox). I add three files to this, PythonGlue.h and PythonGlue.m to Classes, PythonGlue.py to Resources, and I add Python.framework to the frameworks. PythonGlue.{h,m} implement a slightly magic singleton class. When instantiated this class initializes the Python interpreter, it uses Foundation magic to find our resource folder and it runs the file PythonGlue.py from there. The latter file simply adds the resource folder to sys.path and imports any modules found there. Now we only need to get the PythonGlue class instantiated and everything is hunky-dory. Turns out this is easy: instantiate it in MainMenu.nib and set that object to be the application's delegate. Presto, everything works! You simply add PyObjC source files to your Resources section and the classes are automatically available. But now I'm stuck with a silly Cocoa question. I've added a class and instance ITunesCommunication to the CDInfoDocument.nib file, added an askITunes: action to this class, instantiated the class, added an "ask iTunes" button and connected the button to the askITunes method of the instance. Created the Python code and it is indeed called. But in the ITunesCommunication.askITunes_() method the only thing I get is a reference to the button that was pressed. What I need is the CDInfoDocument object, the File Owner for this NIB file (it's an NSDocument subclass). I assume there's a way to go from the button to the window to the document, but I don't know enough Cocoa to do this. Can anyone help? -- Jack Jansen, <Jac...@cw...>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman |
From: SourceForge.net <no...@so...> - 2003-06-17 11:18:31
|
Bugs item #755838, was opened at 2003-06-17 13:18 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=755838&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jack Jansen (jackjansen) Assigned to: Nobody/Anonymous (nobody) Summary: Need PB template for ObjC-Python multidocument app Initial Comment: We miss a Python-Cocoa-ObjC Multidocument template. I assume it is easy to make by combining things from the Python-Cocoa-Objc template and the Python-Cocoa multidocument template, but I haven't a clue how to do it:-( ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=755838&group_id=14534 |
From: SourceForge.net <no...@so...> - 2003-06-17 10:47:57
|
Bugs item #755827, was opened at 2003-06-17 12:47 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=755827&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jack Jansen (jackjansen) Assigned to: Nobody/Anonymous (nobody) Summary: Get default interpreter from plist file? Initial Comment: bin_python_main.m in the project builder template gets the interpreter to use by first looking for a user preference PythonBinPath, and using /usr/bin/python if that doesn't exist. I found this pretty hard to find. Is it an idea (and is it possible) to add an Info.plist entry PythonBinPath that would be checked before /usr/bin/python is used as the default-default? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=755827&group_id=14534 |
From: Dinu G. <gh...@da...> - 2003-06-17 09:41:15
|
Hi, some time ago I started collecting thoughts about PyObjC docu- mentation inside a remote Wiki system. As I had not much control over it, I decided to write my own, named Wickie, which has the nice and dangerous feature of running arbitrary editable code on each page. So for the time being I can only provide a static version of the PyObjC pages (which haven't evolved much, since the start). If anybody is interested in using this seriously for PyObjC documen- tation purposes, we'd need to find some kind of solution to actu- ally enable a trusted collaborative editing process. http://python.net/~gherman/tmp/pyobjcdoc/FrontPage.html The Wickie code itself (about 5 KB) is too much in a flux now but might settle down in a couple of weeks or months. Regards, Dinu -- Dinu C. Gherman ...................................................................... "They misunderestimated me." (George W. Bush, 6 Nov. 2000) |
From: Jack J. <Jac...@cw...> - 2003-06-17 08:37:18
|
On Tuesday, Jun 17, 2003, at 07:20 Europe/Amsterdam, Ronald Oussoren wrote: >>> Is the "existing project" something you have the sources for or do >>> you want to write a plugin? >> >> The former. I want to write a tutorial that lets people start with an >> existing Apple example (/Developer/Examples/AppKit/SimpleComboBox) >> and use Python to extend that app in a way that would be more >> difficult in ObjC. > > That's a great idea, and not something we support at the moment. I > don't think you can do this without building your own copy of python > because Apple's python doesn't include a (shared) library. Actually: no, I plan to cop out here. I'm just going to replace the existing skeleton main.m program with its Python equivalent. But now that I think of it: if I'm going to do this I might as well start with a fresh project from the PyObjC templates and tell the user to copy the existing stuff from the old project into it. But: in the long run doing semi-automatic support for including Python into existing ObjC projects should be done too. For 2.2 there's the problem that there's no shared library, but not for 2.3 (and I would be surprised if Apple doesn't fix this problem for OSX 10.3, too). We would need a bit of boilerplate ObjC code that you call and that will initialize the interpreter and adds your Resources directory to sys.path. I think that's all that is needed. -- Jack Jansen, <Jac...@cw...>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman |
From: Ronald O. <ous...@ci...> - 2003-06-17 05:21:37
|
On Tuesday, Jun 17, 2003, at 00:03 Europe/Amsterdam, Jack Jansen wrote: > > On maandag, jun 16, 2003, at 17:02 Europe/Amsterdam, Ronald Oussoren > wrote: >>> I haven't a clue how to modify an existing ObjC project to allow >>> inclusion of Python code, and this isn't documented anywhere. For >>> new projects there's the Cocoa-Python-ObjC Application.pbproj >>> template which is a start, but this isn't what I want, I want to add >>> Python functionality to an existing project. It is a good idea to >>> document this anyway, methinks, as it will hopefully also contain >>> the knowledge that went into creation of the templates in the first >>> >> place. >> >> Is the "existing project" something you have the sources for or do >> you want to write a plugin? > > The former. I want to write a tutorial that lets people start with an > existing Apple example (/Developer/Examples/AppKit/SimpleComboBox) and > use Python to extend that app in a way that would be more difficult in > ObjC. That's a great idea, and not something we support at the moment. I don't think you can do this without building your own copy of python because Apple's python doesn't include a (shared) library. To get this to work you'll have to add some C code to your ObjC project that will initialize the python interpreter, and possibly load a startup python-script, before starting the ObjC runloop. Then look in one of the existing templates to see how they copy python files into the app bundle. Ronald |
From: Jack J. <Jac...@cw...> - 2003-06-16 22:03:55
|
On maandag, jun 16, 2003, at 17:02 Europe/Amsterdam, Ronald Oussoren wrote: >> I haven't a clue how to modify an existing ObjC project to allow >> inclusion of Python code, and this isn't documented anywhere. For new >> projects there's the Cocoa-Python-ObjC Application.pbproj template >> which is a start, but this isn't what I want, I want to add Python >> functionality to an existing project. It is a good idea to document >> this anyway, methinks, as it will hopefully also contain the >> knowledge that went into creation of the templates in the first >> place. > > Is the "existing project" something you have the sources for or do you > want to write a plugin? The former. I want to write a tutorial that lets people start with an existing Apple example (/Developer/Examples/AppKit/SimpleComboBox) and use Python to extend that app in a way that would be more difficult in ObjC. -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |
From: Ronald O. <ous...@ci...> - 2003-06-16 15:03:51
|
On Monday, Jun 16, 2003, at 15:40 Europe/Amsterdam, Jack Jansen wrote: > I was going to start with the tutorial on using Python from within > your existing ObjC application, taking the CD database/iTunes > interaction I sketched last week, but I got stopped before I even got > started. > > I haven't a clue how to modify an existing ObjC project to allow > inclusion of Python code, and this isn't documented anywhere. For new > projects there's the Cocoa-Python-ObjC Application.pbproj template > which is a start, but this isn't what I want, I want to add Python > functionality to an existing project. It is a good idea to document > this anyway, methinks, as it will hopefully also contain the knowledge > that went into creation of the templates in the first place. Is the "existing project" something you have the sources for or do you want to write a plugin? If it is the former, I can't help you: my PB-ese is almost non-existant, I wouldn't be able to tell you how to add Python files to a 'Cocoa-Python Application' project without experimenting in PB. The latter is easier, see Examples/PrefPane. This builds a plugin for 'System Preferences', a simular technique should work for other applications. Ronald |
From: Jack J. <Jac...@cw...> - 2003-06-16 13:38:59
|
I was going to start with the tutorial on using Python from within your existing ObjC application, taking the CD database/iTunes interaction I sketched last week, but I got stopped before I even got started. I haven't a clue how to modify an existing ObjC project to allow inclusion of Python code, and this isn't documented anywhere. For new projects there's the Cocoa-Python-ObjC Application.pbproj template which is a start, but this isn't what I want, I want to add Python functionality to an existing project. It is a good idea to document this anyway, methinks, as it will hopefully also contain the knowledge that went into creation of the templates in the first place. Anyway: can anyone give me a couple of hints that get me started? -- Jack Jansen, <Jac...@cw...>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman |
From: <bb...@ma...> - 2003-06-16 02:05:20
|
On Sunday, Jun 15, 2003, at 11:18 US/Eastern, Gary Robinson wrote: > Actually a vaguely remembered this morning that you had emailed me > about > this once before, a few weeks ago! I searched my records and found it! > OI > had been so immersed in other tasks in the interim that I forgot. > Maybe I'm > losing brain cells in my old age! But the earlier message didn't > explain how > to use it as completely as this one did, so this is great. Heh -- I completely forgot I'd sent it.... a lot has happened in the past few weeks. The instructions for readline involve dynamically linking against Apple's Readline.framework. Which may not be there any longer (it was in one dev tool, but removed later or something). I just went through this on the plane today (I'm in CA for WWDC next week). Instead, I would recommend: - download the readline 4.3 source - install by: ./configure --disable-dynamic --enable-static sudo make install - grab the readline package I mentioned before - edit setup.py; remove all references to Frameworks. Add "-lreadline", "-lhistory", "-ltermcap" to the extra_link_args (after removing the -framework and -F for Readline.framework). - sudo python setup.py install End result should be a readline module that is statically linked against the readline library and will work against any OS X 10.2 system, regardless of the state of the readline framework. b.bum |
From: Gary R. <gro...@tr...> - 2003-06-15 15:19:16
|
Bill, Many thanks! > It should be a bit easier than that. If you grab the pyssl module > from.... > > http://pyobjc.sf.net/software/ > > .... it should compile with a simple ... > > python setup.py build > > ... and, looking with the build directory, you'll find _socket.so (or > something similar). Actually a vaguely remembered this morning that you had emailed me about this once before, a few weeks ago! I searched my records and found it! OI had been so immersed in other tasks in the interim that I forgot. Maybe I'm losing brain cells in my old age! But the earlier message didn't explain how to use it as completely as this one did, so this is great. Thanks again! --Gary -- <http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org> Gary Robinson CEO Transpose, LLC gro...@tr... 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 |
From: Bill B. <bb...@ma...> - 2003-06-15 12:08:56
|
On Friday, June 13, 2003, at 11:52 AM, Gary Robinson wrote: > If anybody who is an Advanced Bundlebuilder has a suggestion about how > it > might be done, I would really appreciate it. I have never done > anything with > bundles before (and neither has anyone else at our company). > References to > good sources of insight (including books -- I don't mind paying for > good > descriptions) would be also very much appreciated. I have found a > couple of > Apple Web pages about bundles but they don't really seem to get into > the > nuts and bolts about how to build them for custom situations like this. It should be a bit easier than that. If you grab the pyssl module from.... http://pyobjc.sf.net/software/ .... it should compile with a simple ... python setup.py build ... and, looking with the build directory, you'll find _socket.so (or something similar). This .so simply needs to be somewhere in the PYTHONPATH (sys.path) before the socket module installed with Python. So, assuming that the Resources directory of the application is before /usr/lib/python2.2 in sys.path (which it is, I'm fairly certain), you simply need to copy _socket.so into the Resources/ directory of your application. You shouldn't need a custom NSBundle/CFBundle just for the socket module. b.bum |
From: Kaben N. <k_P...@ra...> - 2003-06-15 00:36:27
|
One package each for python2.2 and python2.3. -- Kaben |
From: Gary R. <gro...@tr...> - 2003-06-14 15:42:58
|
Thanks to everyone, particularly Jack and Just, for your insights. They help a lot. Now that I'm beginning to understand OS X bundles more (and have , I can ask better questions about bundling our application. The latest Python is 2.2.3. My understanding is that it contains a lot of bug fixes over the stock OS X Python 2.2. (Side question I saw a note somewhere that Jaguar now has 2.2.1? But when I start Python from the command line (using Jaguar 10.2.6), it says it's "Python 2.2 (#1, 07/14/02, 23:25:09)" -- is that 2.2.1? Jack says he thinks that to enable SSL, I don't need to recompile python as a whole, but only _socketmodule.so. But maybe I SHOULD include a non-stock python so I can get the latest bug fixes. I don't want the reliability of our app to be less because we are using the stock python and it doesn't include the latest bug fixes. So on to my latest set of questions: 1) Might the bug fixes in 2.2.3 (relative to the version most Jaguar users have as stock) make a meaningful difference to the reliability of a PyObjC app that uses such features as new-style classes and generators? 2) Can I simply include this python and its libraries in the package with our app? That is, are there any difficulties in making the app work with the included python and libraries (ignoring the stock python and its libraries)? Any tips on how to do it would also be appreciated. If we do this, I'll just compile the entire 2.2.3 including the SSL, and include everything in the bundle. 3) If there isn't much reason to go to all the trouble above, a tip for how to make stock python use the _socketmodule.so I'd be including in our bundle, rather than the stock version, would be very appreciated. --Gary -- <http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org> Gary Robinson CEO Transpose, LLC gro...@tr... 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 > From: Just van Rossum <ju...@le...> > Date: Fri, 13 Jun 2003 21:29:51 +0200 > To: Gary Robinson <gro...@tr...> > Cc: Jack Jansen <Jac...@cw...>, pyo...@li... > Subject: Re: [Pyobjc-dev] Help in bundling our PyObjC app? > > Gary Robinson wrote: > >>> I think (but haven't tried) that you don't need a specially built >>> Python to enable SSL support, you only need a specially built >>> _socketmodule.so extension module. You can probably put this >>> somewhere in the bundle, but this is Advanced Bundlebuilder so >>> someone else will have to provide the details. >> >> If anybody who is an Advanced Bundlebuilder has a suggestion about >> how it might be done, I would really appreciate it. I have never done >> anything with bundles before (and neither has anyone else at our >> company). References to good sources of insight (including books -- I >> don't mind paying for good descriptions) would be also very much >> appreciated. I have found a couple of Apple Web pages about bundles >> but they don't really seem to get into the nuts and bolts about how >> to build them for custom situations like this. > > You can either use the --resource=<path_to_a_file_or_folder> option, or > add it to the resources list in your buildapp.py. In both cases, the > file will end up in <YourApp>.app/Contents/Resources, which is a fine > place since it's on sys.path when you app executes. > > Just > |
From: Just v. R. <ju...@le...> - 2003-06-13 19:30:16
|
Gary Robinson wrote: > > I think (but haven't tried) that you don't need a specially built > > Python to enable SSL support, you only need a specially built > > _socketmodule.so extension module. You can probably put this > > somewhere in the bundle, but this is Advanced Bundlebuilder so > > someone else will have to provide the details. > > If anybody who is an Advanced Bundlebuilder has a suggestion about > how it might be done, I would really appreciate it. I have never done > anything with bundles before (and neither has anyone else at our > company). References to good sources of insight (including books -- I > don't mind paying for good descriptions) would be also very much > appreciated. I have found a couple of Apple Web pages about bundles > but they don't really seem to get into the nuts and bolts about how > to build them for custom situations like this. You can either use the --resource=<path_to_a_file_or_folder> option, or add it to the resources list in your buildapp.py. In both cases, the file will end up in <YourApp>.app/Contents/Resources, which is a fine place since it's on sys.path when you app executes. Just |
From: Kaben N. <k_f...@ra...> - 2003-06-13 19:13:58
|
May I have some pyobjc fans test a fink package submission? I have been trying to prepare new pyobjc-py22-0.9-1 and pyobjc-py23-0.9-1. They work without problems on my iBook, but not on some other computers. I have only one computer available for testing, so would like to get feedback from other fink/pyobjc users. The fink package submission has URL http://sourceforge.net/tracker/index.php?func=detail&aid=751105&group_id=17203&atid=414256 I have placed a recent build log of pyobjc-py22, which triggers building of python22, at URL http://idyll.org/~kaben/for_fink_pyobjc/pyobjc-py22.install_out.2003.06.12.20.49.04.txt And my iBook's system profile at URL http://idyll.org/~kaben/for_fink_pyobjc/Apple_System_Profiler.txt I would be grateful to be provided with same by anyone interested in helping. Thanks -- Kaben |
From: Gary R. <gro...@tr...> - 2003-06-13 15:53:02
|
> Don't worry, the comment doesn't apply in your case. It should be > clarified. Thanks for relieving my worries about that comment in bundlebuilder.py! :) > I think (but haven't tried) that you don't need a specially built Python > to enable SSL support, you only need a specially built _socketmodule.so > extension > module. You can probably put this somewhere in the bundle, but this is > Advanced > Bundlebuilder so someone else will have to provide the details. If anybody who is an Advanced Bundlebuilder has a suggestion about how it might be done, I would really appreciate it. I have never done anything with bundles before (and neither has anyone else at our company). References to good sources of insight (including books -- I don't mind paying for good descriptions) would be also very much appreciated. I have found a couple of Apple Web pages about bundles but they don't really seem to get into the nuts and bolts about how to build them for custom situations like this. --Gary -- <http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org> Gary Robinson CEO Transpose, LLC gro...@tr... 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 |