PyObjc Application with FlashInApp framework(Read 17315 times)
PyObjc Application with FlashInApp framework on: December 09, 2008, 06:49:25 PM
Hi,
i would like to wrap the Eltima cocoa framework, for use in a PyObjc Application.

First, i can load this one :
$ python
>>> import objc
>>> objc.loadBundle("FlashInApp",
globals(),bundle_path=objc.pathForFramework(u'/Library/Frameworks/FlashInApp.framework/'))
NSBundle </Library/Frameworks/FlashInApp.framework> (loaded)


Next, i try to create a ESFlashView
( ESFlashView is a subClass of ESNetscapePluginView, subClass of NSView )

>>> rect = NSMakeRect(0, 0, 100, 100)
>>> es = ESFlashView.alloc().initWithFrame_(rect)
>>> print es
None

the way to create a ESFlashView is :
>>> es = ESFlashView.alloc()
>>> es
<ESFlashView objective-c instance 0x150a450>
>>> NSView.initWithFrame_(es,rect)
<ESFlashView: 0x150a450>

Now, i fail to call "pluginPath" and "setPluginPath", ESFlashView functions.
Theses functions return and set the path value to the Flash Player plugin.
>>> dir(es)
[ ..., 'pluginPath', ..., 'setPluginPath_', ..., 'zoomIn', ...]
>>> es.pluginPath
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'ESFlashView' object has no attribute 'pluginPath'
>>> es.setPluginPath_
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'ESFlashView' object has no attribute 'setPluginPath_'
>>> es.zoomIn
<native-selector zoomIn of <ESFlashView: 0x150a450>>


Have you ideas why theses functions doesn't match..

Thanks in advance

Joel



Re: PyObjc Application with FlashInApp framework Reply #1 on: December 11, 2008, 12:05:37 PM
I have sent you the answers in response to your email message.



Re: PyObjc Application with FlashInApp framework Reply #2 on: September 22, 2010, 06:11:16 PM
hello,

the very same problem is challenging me. could you please post the solution ?

thank you in advance!

br,

tom



Re: PyObjc Application with FlashInApp framework Reply #3 on: September 27, 2010, 09:05:49 AM
the very same problem is challenging me. could you please post the solution ?
Please, write to us at support[at]eltima.com and send us a sample illustrating the issue. Thank you.



 

Sitemap 1 2 3 4 5