pyobjc-dev Mailing List for PyObjC (Page 238)
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-05-26 12:57:48
|
Hi, when I'm building a distribution of some application using the "pbxbuild install", I see that the included PyObjC folder contains all .py files in addition to the .pyc files and all test_*.py[c]? files, too. A little investigation shows the following numbers for PyObjC 0.9: Foo.app/Contents/Resources/PyObjC/ *.pyc : 326713 B *.pyo : 152776 B *.py : 229737 B So the question is: do we really need to include the .py and .pyo files? If we don't, we'd save about 373 KB in the resulting app, which is about 14 % of an empty doc-based Python app, installed from the PB template. I deleted the .py and .pyo files and it still works. Another question is if the __main__.py in Contents/Resources really needs to be a source file or if it could also be a byte- compiled one? This only for consistency reasons... Dinu -- Dinu C. Gherman ...................................................................... "La perfection est atteinte, non pas lorsqu'il n'y a plus rien =E0 ajouter, mais lorsqu'il n'y a plus rien =E0 retirer." (Antoine de Saint-Exup=E9ry)= |
From: Ronald O. <ous...@ci...> - 2003-05-26 05:18:00
|
On Monday, May 26, 2003, at 02:20 Europe/Amsterdam, Sean Gilbertson wrote: > Hello all, > > I am using an NSOutlineView to display a hierarchy of data, so Cocoa > asks for items, and then later gives them back to me, looking for the > number of children, and "value" ("label") for the data, which it draws > onto the UI. My problem is that, when Cocoa gives the item back to > me, the "in" test fails. Take a look at the following code "snippet," > and its results: > > def outlineView_isItemExpandable_( self, outlineView, item ): > NSLog( "isItemExpandable: %s" % ( item ) ) > > NSLog( "item in self.profiles: %s" % ( item in self.profiles ) > ) > > for profile in self.profiles: > NSLog( "%s" % ( profile ) ) > > Results: > > 2003-05-25 20:09:04.427 Bluebeard2[5819] isItemExpandable: > <ServerInformation.ServerInformation instance at 0x8cfac0> > 2003-05-25 20:09:04.429 Bluebeard2[5819] item in self.profiles: 0 > 2003-05-25 20:09:04.431 Bluebeard2[5819] > <ServerInformation.ServerInformation instance at 0x8cfac0> > > As you can see, the objects share the same reference address. > Performing similar actions in the Python interpreter works fine ("in" > tests return True). I've also tried, in the "for profile in > profiles:" loop, "==" and "is" tests, which both return False. Can > anyone shed some light onto why this is happening? Are the items instances of (a subclass of) NSObject? You must use subclasses of NSObject as items for NSOutlineViews, and you must keep the items alive as long as the view might reference them. NSOutlineView cheats a little and stores the items in an internal datastructure without properly increasing there reference count. I don't really think this is the problem your running into, but you never know :-) Ronald |
From: Sean G. <pr...@cf...> - 2003-05-26 00:18:42
|
Hello all, I am using an NSOutlineView to display a hierarchy of data, so Cocoa asks for items, and then later gives them back to me, looking for the number of children, and "value" ("label") for the data, which it draws onto the UI. My problem is that, when Cocoa gives the item back to me, the "in" test fails. Take a look at the following code "snippet," and its results: def outlineView_isItemExpandable_( self, outlineView, item ): NSLog( "isItemExpandable: %s" % ( item ) ) NSLog( "item in self.profiles: %s" % ( item in self.profiles ) ) for profile in self.profiles: NSLog( "%s" % ( profile ) ) Results: 2003-05-25 20:09:04.427 Bluebeard2[5819] isItemExpandable: <ServerInformation.ServerInformation instance at 0x8cfac0> 2003-05-25 20:09:04.429 Bluebeard2[5819] item in self.profiles: 0 2003-05-25 20:09:04.431 Bluebeard2[5819] <ServerInformation.ServerInformation instance at 0x8cfac0> As you can see, the objects share the same reference address. Performing similar actions in the Python interpreter works fine ("in" tests return True). I've also tried, in the "for profile in profiles:" loop, "==" and "is" tests, which both return False. Can anyone shed some light onto why this is happening? Thanks, Sean |
From: SourceForge.net <no...@so...> - 2003-05-24 20:26:59
|
Bugs item #742862, was opened at 2003-05-24 22:26 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=742862&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Just van Rossum (jvr) Assigned to: Nobody/Anonymous (nobody) Summary: NSApp().endSheet_() raising exception Initial Comment: If you close the window the attached app (build with "python buildapp.py --link build") a sheet with one button pops up. If you click the button, and action is called which is tries to end the sheet by doing NSApp().endSheet_(self.testSheet) self.testSheet.orderOut_(self) However, NSApp().endSheet_() raises an exception that I can't figure out: NSInvalidArgumentException. An equivalent ObjC program behaves correctly. Quitting then additionally causes a GC error: Fatal Python error: unexpected exception during garbage collection I'm at a loss how to investigate this further. Btw. the behavior is identical between Python 2.2 + PyObjC 0.9 and Python CVS + PyObjC CVS. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=742862&group_id=14534 |
From: Just v. R. <ju...@le...> - 2003-05-24 19:46:57
|
SF is down again, so I'll post here. If you close the window the attached app (build with "python buildapp.py --link build") a sheet with one button pops up. If you click the button, and action is called which is tries to end the sheet by doing NSApp().endSheet_(self.testSheet) self.testSheet.orderOut_(self) However, NSApp().endSheet_() raises an exception that I can't figure out: NSInvalidArgumentException. An equivalent ObjC program behaves correctly. Quitting then additionally causes a GC error: Fatal Python error: unexpected exception during garbage collection I'm at a loss how to investigate this further. Btw. the behavior is identical between Python 2.2 + PyObjC 0.9 and Python CVS + PyObjC CVS. Just |
From: Dinu G. <gh...@da...> - 2003-05-24 15:43:31
|
Jack Jansen: > I would assume the new System Events by Apple also work for Cocoa > programs? > > If they do then we simply send ourselves (or whatever other program we > try to test) the relevant System Event. System Events are an OSA > suite, and support for them is included in Python 2.3. > > In case people aren't familiar with System Events: this is the > recently released low-level stuff that makes Universal Access tick. > It's really good: you can basically interact with any GUI element of > any application. And there's an accompanying browser that lets you get > at the names you need to use to address the various UI elements in any > application. The Anguish et al. book says on page 863 (Apple Events): "... Cocoa applications must use the Carbon Apple Event Manager API to send Apple Events. ..." Unfortunately, it's not quite clear which version that refers to, since just earlier it mentions problems with 10.1.3... Dinu -- Dinu C. Gherman ...................................................................... "It was wonderful to find America, but it would have been more wonder- ful to miss it." (Mark Twain) |
From: SourceForge.net <no...@so...> - 2003-05-24 15:36:05
|
Bugs item #742734, was opened at 2003-05-24 15:36 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=742734&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Dinu C. Gherman (dinu_gherman) Assigned to: Nobody/Anonymous (nobody) Summary: NSDistributedNotificationCenter doesn't pass notif.object Initial Comment: When using NSDistributedNotificationCenter, the notification objects are not passed on, but instead a None is received. The same works fine NSNotificationCenter. I've attached a test file for both cases from the same program (although the distributed version works across programs, as well). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=742734&group_id=14534 |
From: Dinu G. <gh...@da...> - 2003-05-24 14:49:56
|
Ronald Oussoren: > If the application supports loading plugins you could load a dummy > plugin that is only used as a communication vehicle between the test > framework and the runloop in the application. Writing plugins that > load Python code is not too hard, I have done a proof of concept > implementation some time ago (check the mailinglist archives) and I > intend to add a supported version of that to the bridge. That sounds too hackumbersome to me. So I've looked into the class NSDistributedNotificationCenter which allows notifications across applications, but only strings can be passed (which is not enough in this case). And BTW this seems to be buggy in PyObjC; I'll sub- mit a bug report, shortly. Thereafter I've tried distributed objects using NSConnection, which works for me when passing "simple stuff" like a dictionary to an- other app, but it seems to be copied oneway and I can't seem to manipulate the original object in the original app... Distributed objects in ObjC use type modifiers like oneway, bycopy and byref and it would be interesting to know how much of this (if anything) already works in PyObjC, or if it ever has a chance of working on this side of the bridge? My gut feeling is that one could play dirty and exchange string representations of Python objects via distributed notifications in both directions as some kind of a work around, but I can't use this either, as long as that mechanism also seems to be buggy. Dinu -- Dinu C. Gherman ...................................................................... "A whole generation has grown up with the idea that it is normal for them to have no freedom." (Richard M. Stallman) |
From: Jack J. <Jac...@cw...> - 2003-05-24 14:41:20
|
On zaterdag, mei 24, 2003, at 14:19 Europe/Amsterdam, Ronald Oussoren wrote: > > On Saturday, May 24, 2003, at 14:01 Europe/Amsterdam, Dinu Gherman > wrote: > >>> I just tried this with simgle widgets and it looks promissing, but >>> it could also become very challenging for complex widgets like NS- >>> TableView, -OutlineView and basically anything deeply structured. >> >> Of course, the real challenge would be to trigger the tests from >> *outside* the tested application! Honestly, I have no idea if it >> is possible to get a handle on a running application from outside, >> perhaps via notifications posted by NSApplication? I would assume the new System Events by Apple also work for Cocoa programs? If they do then we simply send ourselves (or whatever other program we try to test) the relevant System Event. System Events are an OSA suite, and support for them is included in Python 2.3. In case people aren't familiar with System Events: this is the recently released low-level stuff that makes Universal Access tick. It's really good: you can basically interact with any GUI element of any application. And there's an accompanying browser that lets you get at the names you need to use to address the various UI elements in any application. -- - 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-05-24 12:20:20
|
On Saturday, May 24, 2003, at 14:01 Europe/Amsterdam, Dinu Gherman wrote: >> I just tried this with simgle widgets and it looks promissing, but >> it could also become very challenging for complex widgets like NS- >> TableView, -OutlineView and basically anything deeply structured. > > Of course, the real challenge would be to trigger the tests from > *outside* the tested application! Honestly, I have no idea if it > is possible to get a handle on a running application from outside, > perhaps via notifications posted by NSApplication? If the application supports loading plugins you could load a dummy plugin that is only used as a communication vehicle between the test framework and the runloop in the application. Writing plugins that load Python code is not too hard, I have done a proof of concept implementation some time ago (check the mailinglist archives) and I intend to add a supported version of that to the bridge. Gui testing is probably a bit too much for testing PyObjC, although I'd love to see such a tool especially if it uses PyObjC. BTW. Does anyone have ideas on how to execute some code when 'your' NSBundle is loaded. I need this to automaticly initialize the Python interpreter when someone loads a Python based bundle. My proof of concept uses the +initialize method of a dummy class. That works, but would mean that the user must install the Developer Tools when she wants to write plugins/preference panes/... in pure python (because you cannot have the same class in two different bundles, which would mean you'd have to generate a .m file based on a template) Ronald |
From: Dinu G. <gh...@da...> - 2003-05-24 12:00:11
|
I wrote: > Some stuff can certainly be done using NSControl.performClick_(sender) > which every interactive widget should understand. So you can fill in > relevant data into things like textviews, set sliders and so on, and > then make the final "Go" button be magically pressed. Eventually, you > need to read out the widgets or whatever else that should have chan- > ged. > > I just tried this with simgle widgets and it looks promissing, but > it could also become very challenging for complex widgets like NS- > TableView, -OutlineView and basically anything deeply structured. Of course, the real challenge would be to trigger the tests from *outside* the tested application! Honestly, I have no idea if it is possible to get a handle on a running application from outside, perhaps via notifications posted by NSApplication? Dinu -- Dinu C. Gherman ...................................................................... "Journalism largely consists of saying 'Lord Jones is Dead' to people who never knew that Lord Jones was alive." (G. K. Chesterton) |
From: Dinu G. <gh...@da...> - 2003-05-24 10:39:44
|
Ronald Oussoren: > I haven't looked at this yet (SF is down for maintainence, and I'm > about to leave anyway), but this does bring up another issue: How can > we add tests for GUI features to our test procedures. The best way I > can come up with right now would be to build an application that uses > a lot of functionality and let the user browse through it. Such an > application would also be usefull as a demo on how to use Cocoa > widgets from Python. Some stuff can certainly be done using NSControl.performClick_(sender) which every interactive widget should understand. So you can fill in relevant data into things like textviews, set sliders and so on, and then make the final "Go" button be magically pressed. Eventually, you need to read out the widgets or whatever else that should have chan- ged. I just tried this with simgle widgets and it looks promissing, but it could also become very challenging for complex widgets like NS- TableView, -OutlineView and basically anything deeply structured. But if it works it would be a very furtile road to take, even maybe for purely ObjC applications which one would test using PyObjC! Oh, dear, if that ever happens... Dinu -- Dinu C. Gherman ...................................................................... "Any sufficiently advanced technology is indistinguishable from magic." (Arthur C. Clarke) |
From: Ronald O. <ous...@ci...> - 2003-05-24 06:48:20
|
On Saturday, May 24, 2003, at 01:15 Europe/Amsterdam, Just van Rossum wrote: > Sf is currently in read-only mode, so here's an old-fashioned email. > >> Using NSBeginAlertSheet crashes for me. See the attached demo >> program (build with "python buildapp.py --link build"). > > I meant to add that to trigger the crash, simply close the window that > shows up when the app has launched. This _should_ show a sheet, but > crashes instead. I haven't looked at this yet (SF is down for maintainence, and I'm about to leave anyway), but this does bring up another issue: How can we add tests for GUI features to our test procedures. The best way I can come up with right now would be to build an application that uses a lot of functionality and let the user browse through it. Such an application would also be usefull as a demo on how to use Cocoa widgets from Python. Ronald |
From: Just v. R. <ju...@le...> - 2003-05-23 23:57:06
|
Sf is currently in read-only mode, so here's an old-fashioned email. > Using NSBeginAlertSheet crashes for me. See the attached demo > program (build with "python buildapp.py --link build"). I meant to add that to trigger the crash, simply close the window that shows up when the app has launched. This _should_ show a sheet, but crashes instead. Just |
From: SourceForge.net <no...@so...> - 2003-05-23 22:55:19
|
Bugs item #742629, was opened at 2003-05-24 00:55 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=742629&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Just van Rossum (jvr) Assigned to: Nobody/Anonymous (nobody) Summary: NSBeginAlertSheet crashes Initial Comment: Using NSBeginAlertSheet crashes for me. See the attached demo program (build with "python buildapp.py --link build"). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=742629&group_id=14534 |
From: Just v. R. <ju...@le...> - 2003-05-23 21:38:07
|
Bill Noon wrote: > I just did a cvs checkout and rebuild and the program crashes just > fine: Same here. Just |
From: Dinu G. <gh...@da...> - 2003-05-23 20:07:38
|
Ronald Oussoren: > Would you mind if I added allTestsCombined.py to PyObjC? This script > seems to trigger bugs better and my runalltest script, and now that > I've fixed all issues made some tests step on each others toes it > also has a nicer user experience (much less output). Of course not, my pleasure... Dinu -- Dinu C. Gherman ...................................................................... "Of course America had often been discovered before Columbus, but it had always been hushed up." (Oscar Wilde) |
From: Bill N. <no...@sn...> - 2003-05-23 19:51:22
|
I just did a cvs checkout and rebuild and the program crashes just fine: # pythonw resolver.py setDelegate search Browsing for advertised services... runloop Bus error This is with Python 2.3b1 on 10.2.5 (dual G4). Here is the beginning of the crashlog: Date/Time: 2003-05-23 15:41:08 -0400 OS Version: 10.2.5 (Build 6L29) Host: drift.nrcc.cornell.edu Command: python PID: 9083 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000001 Thread 0 Crashed: #0 0x9068ba4c in objc_msgSend #1 0x00191238 in pythonify_c_value #2 0x001a6148 in init_objc #3 0x001a8e28 in ffi_closure_helper_DARWIN #4 0x001a9198 in ffi_closure_ASM #5 0x908bbbc0 in netServiceBrowserDispatchCallBack #6 0x92b36d74 in NetServiceBrowser::BrowserReply(int, char*, char*, char*, in t, NetServiceBrowser*) .... --Bill Noon Northeast Regional Climate Center Cornell University On Friday, May 23, 2003, at 03:20 PM, Ronald Oussoren wrote: > I works for me, I'm not sure if this is because I'm running on an > almost empty network or because I accidently fixed the bug your > running into. Could you try again using the current CVS (I've just > checked in my latest changes). > > ronald@mithril$ pythonw resolver.py > setDelegate > search > Browsing for advertised services... > runloop > didFindService mithril.local. > Browse complete > startLookup > didResolveAddress > mithril.local. > 192.168.2.37:80 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Bob I. <bo...@re...> - 2003-05-23 19:44:12
|
No luck, the bus error continues. Any ideas? -bob On Friday, May 23, 2003, at 15:20 America/New_York, Ronald Oussoren wrote: > I works for me, I'm not sure if this is because I'm running on an > almost empty network or because I accidently fixed the bug your > running into. Could you try again using the current CVS (I've just > checked in my latest changes). > > ronald@mithril$ pythonw resolver.py > setDelegate > search > Browsing for advertised services... > runloop > didFindService mithril.local. > Browse complete > startLookup > didResolveAddress > mithril.local. > 192.168.2.37:80 > > |
From: Ronald O. <ous...@ci...> - 2003-05-23 19:21:58
|
I works for me, I'm not sure if this is because I'm running on an almost empty network or because I accidently fixed the bug your running into. Could you try again using the current CVS (I've just checked in my latest changes). ronald@mithril$ pythonw resolver.py setDelegate search Browsing for advertised services... runloop didFindService mithril.local. Browse complete startLookup didResolveAddress mithril.local. 192.168.2.37:80 |
From: SourceForge.net <no...@so...> - 2003-05-23 19:11:55
|
Bugs item #742543, was opened at 2003-05-23 19:11 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=742543&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Dinu C. Gherman (dinu_gherman) Assigned to: Nobody/Anonymous (nobody) Summary: "nil" used in Cocoa-Python doc-based app template Initial Comment: The default value returned by the method MyDocument.dataRepresentationOfType_() is "nil" instead of "None" - if this is what is needed there in the template(?). "nil" is definitely not defined. This is an excerpt from a new, with PB instantiated, Cocoa- Python document-based application template: class MyDocument(NibClassBuilder.AutoBaseClass): ... def dataRepresentationOfType_(self, aType): # return an NSData containing the document's data represented as # the type identified by aType. return nil ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=742543&group_id=14534 |
From: Ronald O. <ous...@ci...> - 2003-05-23 18:34:10
|
On Sunday, May 18, 2003, at 14:24 Europe/Amsterdam, Dinu Gherman wrote: >> You are right w.r.t. end-users running the testsuite. At the very >> least we should add a new subcommand to setup.py (is that even >> possible with distutils?) and/or document how to do that with the >> source release. We should probably also distribute the runalltests >> script, or simular functionality, with the binary distribution. > > You could also test the distribution installed from a .dmg archive. Would you mind if I added allTestsCombined.py to PyObjC? This script seems to trigger bugs better and my runalltest script, and now that I've fixed all issues made some tests step on each others toes it also has a nicer user experience (much less output). Ronald |
From: Bob I. <bo...@re...> - 2003-05-23 07:23:34
|
I was just screwing around with Rendezvous stuff, and it seems to have found some kind of PyObjC bug.. When I run the attached program on the LAN for *some* services, I get a bus error with this backtrace: (gdb) bt #0 0x9068ba4c in objc_msgSend () #1 0x00246990 in pythonify_c_value (type=0xfe190 "@", datum=0xbfffe2a8) at Modules/objc/objc_support.m:648 #2 0x002580b0 in method_stub (cif=0x1, resp=0xbfffe270, args=0xbfffe180, userdata=0xbfffe080) at Modules/objc/libffi_support.m:379 #3 0x00258d74 in ffi_closure_helper_DARWIN (closure=0x50fda0, rvalue=0xbfffe270, pgr=0x0, pfr=0x1, pst=0x1) at /Users/bob/src/Python/pyobjc/libffi-src/src/powerpc/ffi_darwin.c:707 #4 0x002590e8 in ffi_closure_ASM () #5 0x908bbbc0 in netServiceBrowserDispatchCallBack () #6 0x92b36db4 in NetServiceBrowser::BrowserReply(int, char*, char*, char*, int, NetServiceBrowser*) () ..... This traceback happens for _http._tcp (there should be a bunch of these) but not _daap._tcp (only my laptop is advertising right now). When browsing for _http._tcp I see the following output: setDelegate search Browsing for advertised services... runloop Bus error I'm running the latest CVS of PyObjC and an Apr 26 CVS compiler of Python 2.1b1. |
From: shiquita <Inc...@ex...> - 2003-05-23 03:13:56
|
DQogSGVsbG8sDQoNClRoaXMgZW1haWwgaXMgdG8gaW5mb3JtIHlvdSB0aGF0IHRoaXMgaXMgeW91 ciBsYXN0IGNoYW5jZSB0byBnZXQgaW4gDQpvbiB0aGlzIG9mZmVyLi4uLi4NCg0KT1ZFUiAxNS42 IE1JTExJT04gT1BULUlOLCBUQVJHRVRFRCBFTUFJTCBBRERSRVNTRVMuLi4NClBMVVMgJDIsMDAw IFdPUlRIIE9GIEZSRUUgRU1BSUwgTUFSS0VUSU5HIFNPRlRXQVJFIQ0KDQpXT1VMRCBZT1UgTElL RSBUTyBIQVZFIFlPVVIgT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