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

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.

Related

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/

Is there an Adobe AIR like product for just HTML5 (no flash) on Windows

I would like to create a Windows desktop app using HTML5 features, specifically H.264 video,Web SQL Database,FileReader API. I don't want to use AIR (which currently does not support the video tag, instead uses Flash). Ideally I would like an exe file that just wraps the latest version of webkit in a basic window. It should be stand alone, not rely on the user having Chrome etc. installed. It could load an index.html file in the same directory as the exe. That is it.
I have been unable to find anything like this. I was going to build it myself using QTWebkit but the latest version (4.8.0) does not support the Video tag due to some kind of build issue. I assume the 4.8.1 version will fix this.
Does anyone out there know of something like this that is available now?
For anyone coming across this, Titanium for desktop is no longer supported by Appcelerator, but the project is still supported as an open source initiative. As of today (10/14/2012), it is called TideSDK. According to their Twitter account, they're behind in the 1.3 release due to some sponsored work that will end up in the code base.
Additional options not yet mentioned include AppJS (OSS, requires node.js) and Sencha Desktop Packager (quite pricey).
I think titanium is not totally gone. There is this stuff called tideSdk
I couldn't try it out yet also , so video support and the codec are open for your exploration. Here is how they say:
Create multi-platform desktop apps with HTML5, CSS3 and JavaScript
TideSDK is the new standard for creating beautiful and unique desktop
apps using your web development skills.
I recently thought about doing the same thing, you can still do it with air without using flash, but you could also use Chrome Packaged apps, mozilla prism (although inactive today) or Microsoft HTA (html application).
You can think of using a framework that does the browser embedding for you like Titanium. It's mostly used for creating apps that can be published to iphone, android, and windows devices. It will create a windows MSI install.
Another option is to use the CEF project ( Chromium Embedded Framework for C/C++). I havn't looked at it much, so I can't tell you how difficult/easy it is to work with. Their main site also has wrappers for Java, .NET, and other languages.

Fastest/easiest way to build a WebKit based Windows application?

I am a web developer. I don't know how to build native Windows applications. I recently built a Mac desktop application (using MacRuby) which is a WebKit wrapper around one of my web applications. I'd like to do the same thing for Windows (preferably in Ruby, but whatever is easiest).
Since this is not the core of the application, I'd rather not spend a lot of time trying to build and maintain it. I just need a Windows application that can:
Open a specific website on application launch using an embedded WebKit WebView
Trigger Growl notifications via JavaScript (with some sort of named bridge)
What is the easiest, fastest, cleanest way to do this?
Update: So far I've come across some frameworks like Qt and Awesomium. I don't know how these frameworks compare to other options available, so if you have any opinions or advice, I would appreciate it.
Check out http://appjs.org/ it's built with NodeJS at its core! And it uses chromium webkit at it's core :D
Well, this is a very old question, but if you are still interested...
I'd recommend Qt. There are some very good books available with a lot of boilerplate code and wizard-type tools. You will be able to find example code demonstrating the embedded Webkit that you can modify to suit your needs. It is free and redistribution is free (last I knew). You won't have to know anything about native Windows development, nor even use any native Windows dev tools.
Good luck!

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

WebBrowser Component for Mac

I am looking for some web-browser control for Mac, which is the root of my project and any programming language which supports browser can be used for development,
I tried Mono but that does not support Browser control for Mac.
I am completely new to Mac-world, if there is anyone can show me a list of possibilities.
If you’re developing for Mac OS X, you should use Cocoa, the Objective-C framework developed, published, and supported by Apple.
For the Web browser component, you can use the WebKit.
Qt includes WebKit component. Usually Qt apps are developed with C++ in "Qt Creator" IDE. But Qt's WebKit implementation has several ugly bugs. Other WebKit implementations are better, but I don't know if they are available on Mac.
It is also possible to use Gecko XUL. But it looks more complex to me than Qt.

Resources