Re: [Pyobjc-dev] Problem with animator proxy
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2009-05-19 11:51:22
|
Jonas,
The following workaround should work until I commit a proper fix:
After:
w = ... # Some NSWindow
a = w.animator()
a.pyobjc_ISA
a.setAlphaValue_(1.0)
That is, fetch the "pyobjc_ISA" attribute of the animation proxy after
you create that proxy. A quick test on the command-line seems to
indicate that this fixes the problem. You don't need to store the
result of fetching the attribute, a side-effect of fetching
"pyobjc_ISA" is what "fixes" the problem.
This is obviously just a workaround, I need to check why the type of
the animation proxy is not correct when it is created and fix that
issue.
Ronald
On 18 May, 2009, at 19:58, Jonas Oberschweiber wrote:
> Hi,
>
> I'm having the same problem as the author of this post:
> http://news.gmane.org/gmane.comp.python.pyobjc.devel/cutoff=5048
>
> Basically, my application crashes whenever I try to invoke
> 'setFrame' on
> the animator proxy. 'performSelector' works fine, but as the author
> of the
> original post already noted isn't of much use when you can't pass in
> any
> values. I tried using NSInvocation, but that crashes the
> application, too.
> Could this be a bug in PyObjC?
>
> Jonas
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Pyobjc-dev mailing list
> Pyo...@li...
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
|