Safari can not find my webplugin - xcode

I have developed a web plugin for Safari. It works correctly in XCode (debug), but it can not be found by Safari. The web plugin was copied in /Library/Internet Plug-Ins/.
Does someone know the answer? Thanks!

Safari 5.1 and later no longer supports Webkit Plugins. (I assume you're talking about that and not an NPAPI plugin?)

I found the answer by myself.When using xcode for debuging, the 32-bit plugin can be compiled.but only use safari run plugin,the plugin must be compiled 64-bit.

Related

Use Cordova with Webkit instead of the native engine

I'm building a Cordova app for Windows 8, and I'm blocked by the limitations of Internet Explorer. (I use things that work on Firefox and Chrome, and not IE; and I'm spending too much time trying to fix them)
I've heard there is a way to tell Cordova to use webkit instead of the native rendering engine. But I'm looking around and I don't see much anything. Does anyone know about it ?
The closest I've found is the Crosswalk project, however the plugin doesn't exist for Windows.
Thanks in advance

FirefoxOS and Gecko SDK on Windows

I am trying to get my hands dirty of firefox OS apps. I tried to follow instructions on https://developer.mozilla.org/en/docs/Gecko_SDK
to get the SDK. I downloaded Gecko 22.0 (Firefox 22.0) zip file for windows.
Could anyone please tell me how to build it on windows system. The details given on the website are not as clear as I expected(I had expected them to be like that on android's site). Or is there a binary available for the SDK?
No SDK needed, it is all HTML5. If people talk about SDKs in that context, its often frameworks or maybe tools that can export to HTML5. But generally, you can use all the languages that work in a browser and use them without any framework or SDK to make an app.
The developer docs on Marketplace have this great intro on app development and testing: https://marketplace.firefox.com/developers/docs/quick_start
Happy Hacking!
The "SDK" you are looking for is probably the Firefox OS Simulator Addon for the Mozilla Firefox browser. Actually, all you need to test your applications for most hosted ones is a browser of some sort, but the Simulator (also called as R2D2B2G) lets you preview most of the phones' functionality, API-s and install packaged apps.
Besides installing and testing your applications you will also get a feel of Gaia - the user interface of Firefox OS, written, too, in HTML5.
Like many of the answers here, there's no real SDK, as Firefox OS apps are basically HTML5 web pages with a manifest.webapp The firefox OS Simulator mentioned by Flaki is great to test your app.
I recommend watching this short video from Robert Nyman, one of Mozilla's FFos evangelists on getting started with it: http://www.youtube.com/watch?v=hqyrldlSx_o
And this is a good tutorial on developing an app: https://hacks.mozilla.org/2013/06/building-a-todo-app-for-firefox-os-part-1/

How to develop NPRuntime Plugin on Opera in Mac?

I have recently developed the plugin for web browsers on Mac OS X.
Developed by XCode, my bundle located in /Library/Internet Plug-ins.
Chrome, Safari, Firefox catch this plugin but Opera doesn't.
How can my plugin be caught by Opera?
It’s difficult to answer your question without more information about your plug-in.
The plug-in must be located in “/Library/Internet Plug-ins” and the bundle must have a .plugin extension instead of .bundle. Is the plug-in listed in opera:plugins?
This Mozilla Developer Network article on plug-ins should be very useful.
Daniel, Mac Quality Assurance at Opera Software ASA.
How do you declare your plugin info (name, version, MIME types, etc.)? Most browsers support the new Info.plist method, but it may be that Opera requires that you also use the old resource-bassed approach.
Try creating a FireBreath Plugin and then look at what differs between how it works and how you built yours. Alternately, just use a FireBreath plugin -- it's a heck of a lot easier to deal with than making your NPAPI plugin from scratch and works around a lot of browser issues and inconsistencies.
FireBreath plugins work as NPAPI plugins on mac and have been reported to work in Opera.
I spent weeks looking for the solution, but it appeared incredibly simple: rename YourPlugin.bundle to YourPlugin.plugin !
Did not even require the .rsrc file as it was recommended elsewhere.
:)
You could try putting you plugin in /Library/Internet Plug-Ins/ When opera didn't load the plugin.
I do not know why this will happen since opera said it could be put # ~/Library/Internet Plug-ins/ Opera Document

How to develop a safari plugin(input managers) use SIMBL?

Now I want to develop a safari plugin use SIMBL , but I searched a lot of webpage not found some sourcecode or simple sample , someone can give me or point to a location ? Thank you very much!!!
Did you consider writing a WebKit Plugin?
As far as I understand, SIMBL plug-ins are still some kind of Input Manager and therefore not well supported on new Mac OS X versions, and not supported at all if Safari runs as 64-bit process.
A good starting point to write a WebKit plug-in:
Creating Plug-ins with Cocoa and WebKit
You can also peek into the ClickToFlash source.
ClickToFlash is implemented as WebKit plug-in.

Use Google Chrome/ Chromium instead of WebKit on MacOS

I would like to use Google Chrome instead of the WebKit Framework in one of my projects. I found the 'chromiumembedded' project for Windows but nothing similar for Mac. Best would be to have it in form of a Framework to just drop it into a XCode project.
Question: Is there an easy way to integrate the Webkit of Google Chromium in own MacOS X projects?
There are xcode project files throughout the Chromium code and you'll find that WebKit has its own xcodeproj files. Note that Chromium's WebKit routinely merges with the trunk WebKit and upstreams its changes. I don't really see why you'd want to go through the trouble of pulling from the Chromium's WebKit tree rather than getting it from the head WebKit revision. However you should be able to grab the {$chromium_trunk}/src/third_party/WebKit directory to get Chromium's version of WebKit. There aren't any dependencies on the Chromium browser specific code so that won't be an issue.
What are you trying to get from this; a rendering engine or a browser? The ambiguity in your question leaves a lot of confusion in interpretation.
If your looking at embedded browsers you may want to check out Android's WebKit browser. Android is open source as well.
Are you aware that Google Chrome already uses WebKit?
Quote from here
We owe a great debt to many open source projects, and we're committed to continuing on their path. We've used components from Apple's WebKit and Mozilla's Firefox, among others - and in that spirit, we are making all of our code open source as well. We hope to collaborate with the entire community to help drive the web forward.
Answering to my own question:
https://bitbucket.org/chromiumembedded/cef
Since they don't seem to have a working Mac version up for the general public, I would assume that this does not exist unless you happen to be a Google employee.

Resources