Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the Flash view from WebKit



Title: reea signature
Cris,
    Actually I was thinking to do another way. I want to use the the code from "WebKit/WebKit/Plugins" to load the .swf file in a view and put this view in a carbon window. The main problem is that the xcode project that comes with the WebKit want compile - despite of all my efforts do do so - and I can't debug the project to see how it's working.
Do you think it's possible to do so?

Chris Perkins wrote:
Olariu,

I'm not sure about the latest release of WebKit, but there is a bug in the WebKit that comes installed with all Macs. This bug only effects Carbon (not Cocoa) applications that are embedding WebKit. It causes the double click problem you are seeing.

There are two workarounds that I know of.

1 - don't embed the .swf in an .html file, instead pass the .swf directly to the webview.

2. override the makeFirstResponder method of the NSView and manually pass the focus to your nsview/webview and then pass the event to it.



Workaround #1 is easy, but if the user installs Safari 3 Beta then they'll change their system Webkit and the double click bug will re-appear. Fantastic.

Workaround #2 can only be done in Cocoa, so you'll have to be doing quite a bit of bridging.  I know of a person using wxWidgets who developed this workaround and got it to work, but I haven't been able to get anything like it to work for me.


Hope this helps,

Chris




At 02:24 AM 8/16/2007, Olariu Adrian Mihai wrote:
Hi,
   I have to build am carbon application and the entire UI needs to be done in flash. First I embedded the Flash movie in an HTML document and load this document in a WebView contained in the carbon window. But I have problems getting and handling some mouse events in the flash movie. On the carbon-dev someone suggested me to look at Mozila/WebKit code and see how they load the Flash plugin in the application. I guess this is the best way to do what i have tot do. Can someone please assist me doing this.

Thank you,
Olariu Adrian Mihai.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden



--
Olariu Adrian Mihai Piata Republicii nr.41
tel/fax: 0265-264856
0365-405137
software developer 540110, Tg. Mures
email@hidden Romania email@hiddenwww.reea.net
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >Getting the Flash view from WebKit (From: Olariu Adrian Mihai <email@hidden>)
 >Re: Getting the Flash view from WebKit (From: Chris Perkins <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.