pyobjc-dev Mailing List for PyObjC (Page 30)
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: Virgil D. <hs...@ha...> - 2010-03-09 14:26:22
|
On Tue, Mar 9, 2010 at 3:00 PM, Virgil Dupras <hs...@ha...> wrote: > In other words, it's probably easier to for PyObjC and convert it into > a GNUStep bridge :) > -- > Virgil Dupras > > > On Tue, Mar 9, 2010 at 2:53 PM, Ronald Oussoren <ron...@ma...> wrote: >> >> On 8 Mar, 2010, at 5:20, Mani Ghasemlou wrote: >> >>> Hi Fabzter, >>> >>> On Sun, Mar 7, 2010 at 10:39 PM, Fabzter <fab...@gm...> wrote: >>>> Today I found about pyobjc, and I'm pretty interested on it just >>>> because i like learning about different programming languages. >>> >>> Curiosity is as good a reason as any! >>> >>>> Now, I want to learn objective c and to do it I'll write a very simple >>>> 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is >>>> mac focused, but maybe you have some kind of support to linux? >>>> >>> >>> I believe at one point PyObjC supported GNUStep >>> (http://www.gnustep.org), but it does not anymore. In other words, >>> PyObjC will unfortunately not be very useful to a Linux user. The >>> value proposition for PyObjC, for better or worse, is entirely to the >>> benefit of MacOS X developers who wish to interact with Cocoa using >>> Python. >> >> PyObjC had very limited support for GNUstep, but that never worked properly and because nobody was interested in finishing the port I ripped that support out. >> >> If someone really wants gnustep support and is willing to support that I'm willing to merge a patch to that effect. However, that person will have to do all the work, I'm will not merge partial patches or even run tests on Linux (which means a linux maintainer will have to fix the linux port from time to time because development on OSX broke linux support). >> >> Ronald >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> >> > Arg, sorry for top posting, and it was "fork" instead of "for"... |
From: Virgil D. <hs...@ha...> - 2010-03-09 14:25:56
|
In other words, it's probably easier to for PyObjC and convert it into a GNUStep bridge :) -- Virgil Dupras On Tue, Mar 9, 2010 at 2:53 PM, Ronald Oussoren <ron...@ma...> wrote: > > On 8 Mar, 2010, at 5:20, Mani Ghasemlou wrote: > >> Hi Fabzter, >> >> On Sun, Mar 7, 2010 at 10:39 PM, Fabzter <fab...@gm...> wrote: >>> Today I found about pyobjc, and I'm pretty interested on it just >>> because i like learning about different programming languages. >> >> Curiosity is as good a reason as any! >> >>> Now, I want to learn objective c and to do it I'll write a very simple >>> 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is >>> mac focused, but maybe you have some kind of support to linux? >>> >> >> I believe at one point PyObjC supported GNUStep >> (http://www.gnustep.org), but it does not anymore. In other words, >> PyObjC will unfortunately not be very useful to a Linux user. The >> value proposition for PyObjC, for better or worse, is entirely to the >> benefit of MacOS X developers who wish to interact with Cocoa using >> Python. > > PyObjC had very limited support for GNUstep, but that never worked properly and because nobody was interested in finishing the port I ripped that support out. > > If someone really wants gnustep support and is willing to support that I'm willing to merge a patch to that effect. However, that person will have to do all the work, I'm will not merge partial patches or even run tests on Linux (which means a linux maintainer will have to fix the linux port from time to time because development on OSX broke linux support). > > Ronald > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > |
From: Ronald O. <ron...@ma...> - 2010-03-09 13:54:01
|
On 8 Mar, 2010, at 5:20, Mani Ghasemlou wrote: > Hi Fabzter, > > On Sun, Mar 7, 2010 at 10:39 PM, Fabzter <fab...@gm...> wrote: >> Today I found about pyobjc, and I'm pretty interested on it just >> because i like learning about different programming languages. > > Curiosity is as good a reason as any! > >> Now, I want to learn objective c and to do it I'll write a very simple >> 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is >> mac focused, but maybe you have some kind of support to linux? >> > > I believe at one point PyObjC supported GNUStep > (http://www.gnustep.org), but it does not anymore. In other words, > PyObjC will unfortunately not be very useful to a Linux user. The > value proposition for PyObjC, for better or worse, is entirely to the > benefit of MacOS X developers who wish to interact with Cocoa using > Python. PyObjC had very limited support for GNUstep, but that never worked properly and because nobody was interested in finishing the port I ripped that support out. If someone really wants gnustep support and is willing to support that I'm willing to merge a patch to that effect. However, that person will have to do all the work, I'm will not merge partial patches or even run tests on Linux (which means a linux maintainer will have to fix the linux port from time to time because development on OSX broke linux support). Ronald |
From: Ronald O. <ron...@ma...> - 2010-03-09 13:49:13
|
On 8 Mar, 2010, at 4:39, Fabzter wrote: > Today I found about pyobjc, and I'm pretty interested on it just > because i like learning about different programming languages. > Now, I want to learn objective c and to do it I'll write a very simple > 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is > mac focused, but maybe you have some kind of support to linux? > > Or maybe you can tell me where is the subset of the code (maybe the > core?) that let objective-c and python interact with each other. I'm > only interested in that part, nothing about the cocoa and mac-only > stuff. Please don't think I am too lazy; I'm rather TOO stupid, and > I'll get quickly lost if I dive into pyobjc source. So any help, or > pointers are really apreciated. PyObjC does not support linux, and probably never will. The core part of PyObjC is a bridge that translates Python method calls into Objective-C calls (and the other way around). This bridge uses the Objective-C runtime and the API for that is not standardized in any way, the GNU runtime (used by GNUstep on Linux) has a different API than the one on OSX. Adding support for GNUstep on Linux is possible, but I'm not interested in doing the work. Ronald > > Thank you. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Mani G. <ma...@tu...> - 2010-03-08 04:20:30
|
Hi Fabzter, On Sun, Mar 7, 2010 at 10:39 PM, Fabzter <fab...@gm...> wrote: > Today I found about pyobjc, and I'm pretty interested on it just > because i like learning about different programming languages. Curiosity is as good a reason as any! > Now, I want to learn objective c and to do it I'll write a very simple > 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is > mac focused, but maybe you have some kind of support to linux? > I believe at one point PyObjC supported GNUStep (http://www.gnustep.org), but it does not anymore. In other words, PyObjC will unfortunately not be very useful to a Linux user. The value proposition for PyObjC, for better or worse, is entirely to the benefit of MacOS X developers who wish to interact with Cocoa using Python. I think for making a 2d game using Python, you'll have a lot of great (read: better) options: http://wiki.python.org/moin/PythonGameLibraries > Or maybe you can tell me where is the subset of the code (maybe the > core?) that let objective-c and python interact with each other. I'm This is a huge departure from making a simple 2d game. :) Can't help with this one, sorry ... Best of luck, Mani |
From: Fabzter <fab...@gm...> - 2010-03-08 03:39:53
|
Today I found about pyobjc, and I'm pretty interested on it just because i like learning about different programming languages. Now, I want to learn objective c and to do it I'll write a very simple 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is mac focused, but maybe you have some kind of support to linux? Or maybe you can tell me where is the subset of the code (maybe the core?) that let objective-c and python interact with each other. I'm only interested in that part, nothing about the cocoa and mac-only stuff. Please don't think I am too lazy; I'm rather TOO stupid, and I'll get quickly lost if I dive into pyobjc source. So any help, or pointers are really apreciated. Thank you. |
From: Aahz <aa...@py...> - 2010-03-04 19:00:58
|
[cross-posted to both pythonmac-sig and pyobjc-dev for max audience, Reply-To set to pyobjc-dev for discussion] I finally figured out how to build my app: Turns out that in order to use PyObjC 2.2 you need py2app 0.4.3 -- but PyObjC 1.4 needs py2app 0.3.6. (PyObjC 1.4 is for the main app running on 10.4/10.5/10.6; PyObjC 2.2 is used for FSEvents on 10.5/10.6, previously PyObjC 2.2b2 for 10.5 only, but 2.2b2 doesn't work on 10.6) I built PyObjC 2.2 on 10.5 from source. It's a right royal pain (partly because PyPI has no mechanism for downloading *source* dependencies), and I really hope that the next release of PyObjC makes it much easier to build from source. (Or that binaries for 10.5 get included.) My clue that py2app was the issue was when I figured out that from Foundation import NSAutoreleasePool, NSMutableArray, NSString causing ValueError: Don't know CF type for typestr '^{__CFAllocator=}', cannot create special wrapper only and always occurred in a build, not from plain Python, even on 10.6, meaning that PyObjC wasn't the problem. Incidentally, using py2app 0.4.3 with PyObjC 1.4 resulted in some error about corrupted NIB file that I didn't record exactly. Before someone asks how I can use both PyObjC 1.4 and PyObjC 2.2, I'm playing games with ~/Library/Python/2.6 being a symlink that gets swapped during the build process. (Obviously, I end up with two different apps built.) -- Aahz (aa...@py...) <*> http://www.pythoncraft.com/ "Many customs in this life persist because they ease friction and promote productivity as a result of universal agreement, and whether they are precisely the optimal choices is much less important." --Henry Spencer |
From: <dan...@no...> - 2010-03-03 18:36:33
|
I found the absolute best resource to be Cocoa Programming for Mac OS X, by Aaron Hillegass. I simply ignored all of the memory management stuff and used PyObjC rather than ObjC. The only gotcha I remember is adding @endSheetMethod onto things such as openPanelDidEnd_returnCode_contextInfo_(). dan On Mar 3, 2010, at 5:55a, ext Jim Carroll wrote: > I'm trying to figure out if I should be using PyObjC instead of > wxPython for Mac apps... but I'm having trouble getting started. In > the demo files, I'm able to run Grady, and ClassBrowser but not > OpenGLDemo, which fails with the error, "(ArgumentError: argument 3 > <type 'exceptions.TypeError'>: wrong type) and when I try DotView, > the app immediately quits without ever showing. > > I'm on SnowLeopard on a 64 bit macbook (but running 32 bit everything) > using a Framework install of Python 2.6. I installed PyObjC=2.2 using > easy_install, and py2app 0.3.6. I do have pyOpenGL installed, and can > run wxPython OpenGL apps. > > I'm completely impressed with Miro, which uses PyObjC to embed VLC, > and has a decent startup time, and generally works like a charm... but > can't seem to find the path to writing similar apps myself. What are > the best resources for getting started? > > Thanks, > -Jim > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Mani G. <ma...@tu...> - 2010-03-03 16:31:45
|
On Mon, Feb 22, 2010 at 3:14 PM, Mani Ghasemlou <ma...@tu...> wrote: > Hello, > > Here is an XCode project that reproduces the issue. Thank you. > > Mani > > On Fri, Feb 19, 2010 at 1:54 PM, Mani Ghasemlou <ma...@tu...> wrote: >> Hello, >> >> This may or may not be a bridge bug, but either way I'll post it here >> and hopefully someone will be able to help. >> >> I am implementing a Python class (note: not a subclass of NSObject) >> that fulfills the ISyncSessionDriverDataSource protocol >> (http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ISyncSessionDriverDataSource_Protocol/Reference/Reference.html). >> >> With this implementation passed in to the session driver, I've >> confirmed that functions in my class returning various Cocoa objects >> (NSDictionary, NSArray, NSURL) are being invoked and handled >> correctly. >> >> However, I am stuck on the preferredSyncModeForEntityName_() >> implementation. It is supposed to return type ISyncSessionDriverMode >> (http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ISyncSessionDriverDataSource_Protocol/Reference/Reference.html#//apple_ref/doc/c_ref/ISyncSessionDriverMode), >> an enum. >> >> My code simply returns an enum value: >> >> def preferredSyncModeForEntityName_(self, entity): >> logging.debug('DRIVER requesting preferred sync mode') >> if self.refresh is True: >> logging.debug('returning ' + str(ISyncSessionDriverModeRefresh)) >> return ISyncSessionDriverModeRefresh >> else: >> logging.debug('returning '+ str(ISyncSessionDriverModeFast)) >> return ISyncSessionDriverModeFast >> >> From my understanding of both the documentation and the way PyObjC >> works, the above should just work, right? However it doesnt: >> >> 2010-02-19 13:29:46,908 DEBUG >> SyncDataSource.preferredSyncModeForEntityName_: DRIVER requesting >> preferred sync mode >> 2010-02-19 13:29:46,908 DEBUG >> SyncDataSource.preferredSyncModeForEntityName_: returning 1 >> ISyncSessionDriverDataSource <SyncDataSource.SyncDataSource object at >> 0x27ae070> responded poorly to preferredSyncModeForEntityName: with >> entity com.apple.calendars.Attendee >> >> Any ideas what could be wrong here? I have tried all of the enum >> values just to see if there's something wrong with my logic, but they >> all return the same error. This leads me to think that >> ISyncSessionDriver is not happy with the integer format used to return >> this enum value. Or maybe I'm just missing something obvious? >> >> Any help greatly appreciated! >> >> (OS X 10.5.8, standard system PyObjC installation: 2.0) >> >> Regards, >> Mani >> Just wanted to give this thread a bump. I am still blocked by this issue, and any responses, workarounds, insights or otherwise would be greatly appreciated! To restate the problem, I am implementing an informal protocol "ISyncSessionDriverDataSource". One of the methods to be implemented simply returns an enum value (in other words, an int) -- and the Sync Services framework complains no matter which of the acceptable enum values I return. Either I'm missing something (it's happened before) or there is a possible bug with with the bridge's SyncServices framework support. Apologies for bumping this with not much new to add, but I am very keen to get this issue resolved. :) Cheers, Mani |
From: Jim C. <ji...@ma...> - 2010-03-03 13:55:58
|
I'm trying to figure out if I should be using PyObjC instead of wxPython for Mac apps... but I'm having trouble getting started. In the demo files, I'm able to run Grady, and ClassBrowser but not OpenGLDemo, which fails with the error, "(ArgumentError: argument 3 <type 'exceptions.TypeError'>: wrong type) and when I try DotView, the app immediately quits without ever showing. I'm on SnowLeopard on a 64 bit macbook (but running 32 bit everything) using a Framework install of Python 2.6. I installed PyObjC=2.2 using easy_install, and py2app 0.3.6. I do have pyOpenGL installed, and can run wxPython OpenGL apps. I'm completely impressed with Miro, which uses PyObjC to embed VLC, and has a decent startup time, and generally works like a charm... but can't seem to find the path to writing similar apps myself. What are the best resources for getting started? Thanks, -Jim |
From: Ronald O. <ron...@ma...> - 2010-02-28 20:23:38
|
On 23 Feb, 2010, at 12:30, Tobias Weber wrote: > Hi, > using the Python and PyObjC that came with Snow Leopard, this works fine: > > from Foundation import * > > NSURL.URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( > mydata, (1 << 8), None, None, None) > > But I'd rather use the named constant NSURLBookmarkResolutionWithoutUI, only I'm getting NameError. > > I found a suggestion to import * from AppKit, but that doesn't help: > > http://sourceforge.net/mailarchive/message.php?msg_id=d2jvrn%24d9f%241%40sea.gmane.org 'from Foundation import *' should help, but does indeed not do so :-( This is fixed in the repository, but that's not usable at the moment due to a port-in-progress to python 3.x Ronald > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Tobias W. <mk...@to...> - 2010-02-23 11:48:13
|
Hi, using the Python and PyObjC that came with Snow Leopard, this works fine: from Foundation import * NSURL.URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( mydata, (1 << 8), None, None, None) But I'd rather use the named constant NSURLBookmarkResolutionWithoutUI, only I'm getting NameError. I found a suggestion to import * from AppKit, but that doesn't help: http://sourceforge.net/mailarchive/message.php?msg_id=d2jvrn%24d9f%241%40sea.gmane.org |
From: Aahz <aa...@py...> - 2010-02-23 01:10:09
|
Aside from my difficulty with getting pyobjc 2.2 to work on both 10.5 and 10.6, is there anyone who has a single application built for 10.5/10.6 that uses FSEvents? If yes, what's your build process? -- Aahz (aa...@py...) <*> http://www.pythoncraft.com/ "Many customs in this life persist because they ease friction and promote productivity as a result of universal agreement, and whether they are precisely the optimal choices is much less important." --Henry Spencer |
From: Aahz <aa...@py...> - 2010-02-23 01:02:56
|
Well, I finally managed to compile/install PyObjC 2.2 on 10.5 and it works. However, as soon as I run the resulting app on 10.6, it blows up in from Foundation import NSAutoreleasePool, NSMutableArray, NSString File "Foundation/__init__.pyo", line 10, in <module> File "CoreFoundation/__init__.pyo", line 19, in <module> File "objc/_bridgesupport.pyo", line 156, in initFrameworkWrapper File "objc/_bridgesupport.pyo", line 58, in _parseBridgeSupport ValueError: Don't know CF type for typestr '^{__CFAllocator=}', cannot create special wrapper Suggestions? -- Aahz (aa...@py...) <*> http://www.pythoncraft.com/ "Many customs in this life persist because they ease friction and promote productivity as a result of universal agreement, and whether they are precisely the optimal choices is much less important." --Henry Spencer |
From: Mani G. <ma...@tu...> - 2010-02-22 20:14:19
|
Hello, Here is an XCode project that reproduces the issue. Thank you. Mani On Fri, Feb 19, 2010 at 1:54 PM, Mani Ghasemlou <ma...@tu...> wrote: > Hello, > > This may or may not be a bridge bug, but either way I'll post it here > and hopefully someone will be able to help. > > I am implementing a Python class (note: not a subclass of NSObject) > that fulfills the ISyncSessionDriverDataSource protocol > (http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ISyncSessionDriverDataSource_Protocol/Reference/Reference.html). > > With this implementation passed in to the session driver, I've > confirmed that functions in my class returning various Cocoa objects > (NSDictionary, NSArray, NSURL) are being invoked and handled > correctly. > > However, I am stuck on the preferredSyncModeForEntityName_() > implementation. It is supposed to return type ISyncSessionDriverMode > (http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ISyncSessionDriverDataSource_Protocol/Reference/Reference.html#//apple_ref/doc/c_ref/ISyncSessionDriverMode), > an enum. > > My code simply returns an enum value: > > def preferredSyncModeForEntityName_(self, entity): > logging.debug('DRIVER requesting preferred sync mode') > if self.refresh is True: > logging.debug('returning ' + str(ISyncSessionDriverModeRefresh)) > return ISyncSessionDriverModeRefresh > else: > logging.debug('returning '+ str(ISyncSessionDriverModeFast)) > return ISyncSessionDriverModeFast > > From my understanding of both the documentation and the way PyObjC > works, the above should just work, right? However it doesnt: > > 2010-02-19 13:29:46,908 DEBUG > SyncDataSource.preferredSyncModeForEntityName_: DRIVER requesting > preferred sync mode > 2010-02-19 13:29:46,908 DEBUG > SyncDataSource.preferredSyncModeForEntityName_: returning 1 > ISyncSessionDriverDataSource <SyncDataSource.SyncDataSource object at > 0x27ae070> responded poorly to preferredSyncModeForEntityName: with > entity com.apple.calendars.Attendee > > Any ideas what could be wrong here? I have tried all of the enum > values just to see if there's something wrong with my logic, but they > all return the same error. This leads me to think that > ISyncSessionDriver is not happy with the integer format used to return > this enum value. Or maybe I'm just missing something obvious? > > Any help greatly appreciated! > > (OS X 10.5.8, standard system PyObjC installation: 2.0) > > Regards, > Mani > -- Mani Ghasemlou, Team Lead, Tungle w. +1.514.678.9181 m.+1.514.839.6264 Accelerate your calendar. Get Tungle at www.tungle.com. - - - - - This e-mail is privileged, confidential, and subject to copyright. Any unauthorized use or disclosure is prohibited. |
From: Lukas H. <Lu...@gm...> - 2010-02-22 04:05:29
|
Hello, I need your help porting my application Series60-Remote [1] to Mac OS X. It is an open source software suite for S60 mobile phones, which is written in Python. Its GUI is based on PyQt4 [2] and it uses Bluetooth to connect to a mobile phone. I tried to port this application to Mac OS X using lightblue as bluetooth wrapper for IOBluetooth. I tried to handle the bluetooth connection in a seperate thread (like in Linux and Windows) [3], but this seems to be not possible with IOBluetooth. My next try was to use an asynchronous connection instead and use IOBluetooth directly. It works great with the attached Objective-C application [4]. But how can I use this wrapper in my Python application? When I import this extension using objc I already have the Qt event loop running. But I also have to start the Cocoa event loop (CFRunLoopRun()) if I want to receive rfcommChannelData and rfcommChannelOpenComplete events? Is it possible to integrate this event loop in Qt, like it is possible to integrate the Qt event loop in GTK+? Did anybody try something like this? Are there any examples? [I know this issue isn't directly related to PyObjc, but maybe anybody has done a similar thing?] Thank you for every help, Lukas Hetzenecker |
From: Mani G. <ma...@tu...> - 2010-02-19 18:55:08
|
Hello, This may or may not be a bridge bug, but either way I'll post it here and hopefully someone will be able to help. I am implementing a Python class (note: not a subclass of NSObject) that fulfills the ISyncSessionDriverDataSource protocol (http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ISyncSessionDriverDataSource_Protocol/Reference/Reference.html). With this implementation passed in to the session driver, I've confirmed that functions in my class returning various Cocoa objects (NSDictionary, NSArray, NSURL) are being invoked and handled correctly. However, I am stuck on the preferredSyncModeForEntityName_() implementation. It is supposed to return type ISyncSessionDriverMode (http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ISyncSessionDriverDataSource_Protocol/Reference/Reference.html#//apple_ref/doc/c_ref/ISyncSessionDriverMode), an enum. My code simply returns an enum value: def preferredSyncModeForEntityName_(self, entity): logging.debug('DRIVER requesting preferred sync mode') if self.refresh is True: logging.debug('returning ' + str(ISyncSessionDriverModeRefresh)) return ISyncSessionDriverModeRefresh else: logging.debug('returning '+ str(ISyncSessionDriverModeFast)) return ISyncSessionDriverModeFast >From my understanding of both the documentation and the way PyObjC works, the above should just work, right? However it doesnt: 2010-02-19 13:29:46,908 DEBUG SyncDataSource.preferredSyncModeForEntityName_: DRIVER requesting preferred sync mode 2010-02-19 13:29:46,908 DEBUG SyncDataSource.preferredSyncModeForEntityName_: returning 1 ISyncSessionDriverDataSource <SyncDataSource.SyncDataSource object at 0x27ae070> responded poorly to preferredSyncModeForEntityName: with entity com.apple.calendars.Attendee Any ideas what could be wrong here? I have tried all of the enum values just to see if there's something wrong with my logic, but they all return the same error. This leads me to think that ISyncSessionDriver is not happy with the integer format used to return this enum value. Or maybe I'm just missing something obvious? Any help greatly appreciated! (OS X 10.5.8, standard system PyObjC installation: 2.0) Regards, Mani |
From: SourceForge.net <no...@so...> - 2010-02-10 17:08:04
|
Bugs item #2949201, was opened at 2010-02-10 09:08 Message generated for change (Tracker Item Submitted) made by chrishbarker You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=2949201&group_id=14534 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christopher Barker (chrishbarker) Assigned to: Nobody/Anonymous (nobody) Summary: Py2app annoyance Initial Comment: I've often gotten errors like: /usr/bin/strip: the __LINKEDIT segment does not cover the end of the file (can't be processed) in: /Users/cbarker/HAZMAT/MappingSVN/Maproom/trunk/dist/Maproom.app/Contents/Frameworks/GDAL.framework/Versions/1.6/Programs/gdaltindex (for architecture ppc) They go away if I blow away the previously built app bundle and run it clean. This isn't too big a deal, but I often forget, and then I stare at it while before I remember what to do about it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=2949201&group_id=14534 |
From: Orestis M. <or...@or...> - 2010-02-02 22:24:10
|
On 3 Feb 2010, at 00:09, Chris Bonhage wrote: > I'm having some trouble getting your workaround to function as well; the application launches properly if I take the Quartz import out of the global scope and put it in my method or in applicationDidFinishLaunching_, but the animation is still not working... Allow me to demonstrate: > > import objc > from Foundation import * > > class ShakeDemo(NSObject): > window = objc.IBOutlet() > def applicationDidFinishLaunching_(self, sender): > import Quartz > NSLog("Application did finish launching.") > > @objc.IBAction > def shake_(self, sender): > import Quartz > shake = {'count': 4, 'duration': 0.5, 'vigor': 0.05} > shakeAnim = Quartz.CAKeyframeAnimation.animation() > shakePath = Quartz.CGPathCreateMutable() > frame = self.window.frame() > Quartz.CGPathMoveToPoint(shakePath, None, NSMinX(frame), NSMinY(frame)) > shakeLeft = NSMinX(frame) - frame.size.width * shake['vigor'] > shakeRight = NSMinX(frame) + frame.size.width * shake['vigor'] > for i in range(shake['count']): > Quartz.CGPathAddLineToPoint(shakePath, None, shakeLeft, NSMinY(frame)) > Quartz.CGPathAddLineToPoint(shakePath, None, shakeRight, NSMinY(frame)) > Quartz.CGPathCloseSubpath(shakePath) > # Use KVO to set the path and duration since we "can't change a method" > shakeAnim._['path'] = shakePath > shakeAnim._['duration'] = shake['duration'] > self.window.setAnimations_(NSDictionary.dictionaryWithObject_forKey_(shakeAnim, "frameOrigin")) > self.window.animator().setFrameOrigin_(frame.origin) > > if __name__ == "__main__": > from PyObjCTools import AppHelper > AppHelper.runEventLoop() > > This works perfectly on Snow Leopard, but when I run it on Leopard the window disappears after the shake_ action (its frame turns into NSZeroRect rather than animating as far as I can tell). Obviously, ShakeDemo.window outlet is wired to the window in the xib, as is the shake_ action, so I've attached a project file below so you can try for yourself. Just to make sure, is the same code running under plain Obj-C? You might be dealing with some Core Animation change. Other than that, I know that CAAnimations have a property on what to do when the animation finishes (remove, freeze) and so on. You'd need to see the docs for more specifics though. > > <ShakeDemo.zip> > > On Feb 2, 2010, at 2:31 PM, Orestis Markou wrote: > >> This is a known issue, though I've no idea whose bug it is. >> >> The workaround is to put any Quartz-related imports in a place where they are reached *after* the application launches, >> such as applicationDidFinishLaunching_. If you're doing a lot of work you might move them to an external file to make life easier. >> >> Orestis >> >> On 2 Feb 2010, at 21:14, Chris Bonhage wrote: >> >>> I'm trying to use Quartz in my Xcode template-based PyObjC application >>> to do a window shake animation; everything works great in Snow >>> Leopard. When I go about testing it on Leopard systems, some bad stuff >>> happens at application launch, the dock icon bounces continuously, and >>> the console barfs up this nonsense before quieting down and doing >>> nothing at all: >>> >>> _RegisterApplication(), FAILED TO establish the default connection to >>> the WindowServer, _CGSDefaultConnection() is NULL. >>> *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1d66300> >>> '(null)') unlocked when not locked >>> *** Break on _NSLockError() to debug. >>> NSInternalInconsistencyException - Error (1002) creating CGSWindow >>> >>> This issue doesn't occur if the import occurs after >>> AppHelper.runEventLoop() gets called, but the resulting calls to >>> Quartz don't appear to be functioning properly, as the window does not >>> shake and in fact disappears, changing its frame to NSZeroRect for >>> every frame of the key-animation. >>> >>> I've tested this import issue on a clean Xcode project from the >>> template and it occurs, but the internets at large have little to say >>> about the matter outside of the py2app realm. Any thoughts/ >>> workarounds? The fact that this works just fine on Snow Leopard leads >>> me to believe that this is a bug with PyObjC in Leopard, but I really >>> hope not. |
From: Chris B. <qu...@me...> - 2010-02-02 22:10:10
|
I'm having some trouble getting your workaround to function as well; the application launches properly if I take the Quartz import out of the global scope and put it in my method or in applicationDidFinishLaunching_, but the animation is still not working... Allow me to demonstrate: import objc from Foundation import * class ShakeDemo(NSObject): window = objc.IBOutlet() def applicationDidFinishLaunching_(self, sender): import Quartz NSLog("Application did finish launching.") @objc.IBAction def shake_(self, sender): import Quartz shake = {'count': 4, 'duration': 0.5, 'vigor': 0.05} shakeAnim = Quartz.CAKeyframeAnimation.animation() shakePath = Quartz.CGPathCreateMutable() frame = self.window.frame() Quartz.CGPathMoveToPoint(shakePath, None, NSMinX(frame), NSMinY(frame)) shakeLeft = NSMinX(frame) - frame.size.width * shake['vigor'] shakeRight = NSMinX(frame) + frame.size.width * shake['vigor'] for i in range(shake['count']): Quartz.CGPathAddLineToPoint(shakePath, None, shakeLeft, NSMinY(frame)) Quartz.CGPathAddLineToPoint(shakePath, None, shakeRight, NSMinY(frame)) Quartz.CGPathCloseSubpath(shakePath) # Use KVO to set the path and duration since we "can't change a method" shakeAnim._['path'] = shakePath shakeAnim._['duration'] = shake['duration'] self .window .setAnimations_(NSDictionary.dictionaryWithObject_forKey_(shakeAnim, "frameOrigin")) self.window.animator().setFrameOrigin_(frame.origin) if __name__ == "__main__": from PyObjCTools import AppHelper AppHelper.runEventLoop() This works perfectly on Snow Leopard, but when I run it on Leopard the window disappears after the shake_ action (its frame turns into NSZeroRect rather than animating as far as I can tell). Obviously, ShakeDemo.window outlet is wired to the window in the xib, as is the shake_ action, so I've attached a project file below so you can try for yourself. On Feb 2, 2010, at 2:31 PM, Orestis Markou wrote: > This is a known issue, though I've no idea whose bug it is. > > The workaround is to put any Quartz-related imports in a place where > they are reached *after* the application launches, > such as applicationDidFinishLaunching_. If you're doing a lot of > work you might move them to an external file to make life easier. > > Orestis > > On 2 Feb 2010, at 21:14, Chris Bonhage wrote: > >> I'm trying to use Quartz in my Xcode template-based PyObjC >> application >> to do a window shake animation; everything works great in Snow >> Leopard. When I go about testing it on Leopard systems, some bad >> stuff >> happens at application launch, the dock icon bounces continuously, >> and >> the console barfs up this nonsense before quieting down and doing >> nothing at all: >> >> _RegisterApplication(), FAILED TO establish the default connection to >> the WindowServer, _CGSDefaultConnection() is NULL. >> *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1d66300> >> '(null)') unlocked when not locked >> *** Break on _NSLockError() to debug. >> NSInternalInconsistencyException - Error (1002) creating CGSWindow >> >> This issue doesn't occur if the import occurs after >> AppHelper.runEventLoop() gets called, but the resulting calls to >> Quartz don't appear to be functioning properly, as the window does >> not >> shake and in fact disappears, changing its frame to NSZeroRect for >> every frame of the key-animation. >> >> I've tested this import issue on a clean Xcode project from the >> template and it occurs, but the internets at large have little to say >> about the matter outside of the py2app realm. Any thoughts/ >> workarounds? The fact that this works just fine on Snow Leopard leads >> me to believe that this is a bug with PyObjC in Leopard, but I really >> hope not. |
From: Aahz <aa...@py...> - 2010-02-02 21:30:47
|
On Tue, Feb 02, 2010, Ronald Oussoren wrote: > On 29 Jan, 2010, at 18:16, Aahz wrote: >> On Fri, Jan 29, 2010, Ronald Oussoren wrote: >>> On Friday, January 29, 2010, at 06:26AM, "Aahz" <aa...@py...> wrote: >>>> >>>> How do I download the source for exactly the release that's available on >>>> PyPI? Using trunk straight-up is something I'd rather avoid. >>> >>> The sources should be available on pypi. I haven't created a tag in >>> the repository for the last release, that's something to add to my >>> release checklist for future releases. >> >> Do I need to download each source file separately? I don't see any >> easy_install option to grab dependencies of source. > > Ouch. That sucks, I'll see if I can create an archive with all sources > for the next release. Thanks! If you can at least specify the revision you used to create 2.2, I can pull trunk to that rev. -- Aahz (aa...@py...) <*> http://www.pythoncraft.com/ import antigravity |
From: Orestis M. <or...@or...> - 2010-02-02 19:31:23
|
On 2 Feb 2010, at 21:14, Chris Bonhage wrote: > I'm trying to use Quartz in my Xcode template-based PyObjC application > to do a window shake animation; everything works great in Snow > Leopard. When I go about testing it on Leopard systems, some bad stuff > happens at application launch, the dock icon bounces continuously, and > the console barfs up this nonsense before quieting down and doing > nothing at all: > > _RegisterApplication(), FAILED TO establish the default connection to > the WindowServer, _CGSDefaultConnection() is NULL. > *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1d66300> > '(null)') unlocked when not locked > *** Break on _NSLockError() to debug. > NSInternalInconsistencyException - Error (1002) creating CGSWindow > > This issue doesn't occur if the import occurs after > AppHelper.runEventLoop() gets called, but the resulting calls to > Quartz don't appear to be functioning properly, as the window does not > shake and in fact disappears, changing its frame to NSZeroRect for > every frame of the key-animation. > > I've tested this import issue on a clean Xcode project from the > template and it occurs, but the internets at large have little to say > about the matter outside of the py2app realm. Any thoughts/ > workarounds? The fact that this works just fine on Snow Leopard leads > me to believe that this is a bug with PyObjC in Leopard, but I really > hope not. This is a known issue, though I've no idea whose bug it is. The workaround is to put any Quartz-related imports in a place where they are reached *after* the application launches, such as applicationDidFinishLaunching_. If you're doing a lot of work you might move them to an external file to make life easier. Orestis > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Chris B. <qu...@me...> - 2010-02-02 19:14:55
|
I'm trying to use Quartz in my Xcode template-based PyObjC application to do a window shake animation; everything works great in Snow Leopard. When I go about testing it on Leopard systems, some bad stuff happens at application launch, the dock icon bounces continuously, and the console barfs up this nonsense before quieting down and doing nothing at all: _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL. *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1d66300> '(null)') unlocked when not locked *** Break on _NSLockError() to debug. NSInternalInconsistencyException - Error (1002) creating CGSWindow This issue doesn't occur if the import occurs after AppHelper.runEventLoop() gets called, but the resulting calls to Quartz don't appear to be functioning properly, as the window does not shake and in fact disappears, changing its frame to NSZeroRect for every frame of the key-animation. I've tested this import issue on a clean Xcode project from the template and it occurs, but the internets at large have little to say about the matter outside of the py2app realm. Any thoughts/ workarounds? The fact that this works just fine on Snow Leopard leads me to believe that this is a bug with PyObjC in Leopard, but I really hope not. |
From: Jep H. <je...@gm...> - 2010-02-02 14:02:20
|
Hi Ronald, You actually already solved this when you pointed out that the 'in_attrs' string wasn't being properly defined as an NS dictionary. Once you do that, it all works.... def convert_for_iphone(infile, outfile): in_attrs = NSDictionary.dictionaryWithDictionary_({ 'QTMovieFileNameAttribute': infile, 'QTMovieOpenAsyncOKAttribute': False, 'QTMovieApertureModeAttribute': QTMovieApertureModeClean, 'QTMovieIsActiveAttribute': True, }) movie, error = QTMovie.movieWithAttributes_error_(in_attrs, None) Cheers, Jep On Feb 2, 2010, at 3:28 AM, Ronald Oussoren wrote: > > On 10 Jan, 2010, at 23:31, Jep Hill wrote: > >> Hello all, >> >> Having searched the web high and low trying to find help with QTKit and Python on Snow Leopard 10.6.2,I was very happy to find this forum. >> >> Can anyone tell my how to get this sample script working: http://pseudogreen.org/blog/qtkit/ >> >> I'm pulling my hair out trying to figure out why I keep getting this error: >> >> >> $convert_for_iphone in_test.mov out_test.mov >> Traceback (most recent call last): >> File "/Users/jep/scripts/python/convert_for_iphone", line 49, in <module> >> convert_for_iphone(infile, outfile) >> File "/Users/jep/scripts/python/convert_for_iphone", line 27, in convert_for_iphone >> movie, error = QTKit.QTMovie.movieWithAttributes_error_(in_attrs, None) >> KeyError: u'QTMovieDelegateAttribute' >> >> In fact I'm getting the same "Key Error: u'QTMovieDelegateAttribute" on several example scripts. I can't seem to successfully initialize a movie object. >> >> All help is more than appreciated — thank you all. > > I get the same error message. My guess is that something changed in 10.6 that invalidated the script. > > Ronald > >> >> Jep >> ------------------------------------------------------------------------------ >> The Planet: dedicated and managed hosting, cloud storage, colocation >> Stay online with enterprise data centers and the best network in the business >> Choose flexible plans and management services without long-term contracts >> Personal 24x7 support from experience hosting pros just a phone call away. >> http://p.sf.net/sfu/theplanet-com >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |
From: Ronald O. <ron...@ma...> - 2010-02-02 08:31:45
|
On 29 Jan, 2010, at 18:16, Aahz wrote: > On Fri, Jan 29, 2010, Ronald Oussoren wrote: >> On Friday, January 29, 2010, at 06:26AM, "Aahz" <aa...@py...> wrote: >>> >>> How do I download the source for exactly the release that's available on >>> PyPI? Using trunk straight-up is something I'd rather avoid. >> >> The sources should be available on pypi. I haven't created a tag in >> the repository for the last release, that's something to add to my >> release checklist for future releases. > > Do I need to download each source file separately? I don't see any > easy_install option to grab dependencies of source. Ouch. That sucks, I'll see if I can create an archive with all sources for the next release. Ronald |