-
a webapp in 1 week (part 2): the source of data — be present now
-
-
11. What type of plug-ins does Safari support?
All versions of Safari support Netscape-style plug-ins. In additon to Netscape-style plug-in support, Safari 1.3 and above on Mac OS X supports Cocoa plug-ins. While not cross platform, Cocoa plug-ins are easy to create and allow your plug-in to leverage all of Cocoa’s frameworks.
For more on writing Cocoa plug-ins, review the WebKit Plug-In Programming Topic and try the sample plug-ins available in the WebKit examples directory provided with Xcode.
For more on writing Netscape-style plug-ins for Safari, see Apple’s Technical Note on Browser Plug-ins for Mac OS X and Netscape’s definitive Plug-in Guide. A very simple Sample plug-in is available, however you will need the appropriate header file “npapi.h” from Netscape to build the project yourself.
With the transition to Intel-based processors, developers should always create universal binaries for plug-ins written with Carbon, Cocoa, or BSD APIs. For information on how to create universal binaries, see Universal Binary Programming Guidelines.
-
12. Where should Safari plug-ins reside?
To insure that a given plug-in is available to all users of Safari as well as other WebKit-based applications, browser plug-ins should be placed in the ‘/Library/Internet Plug-Ins/’ directory.
For Safari 3.0 on Windows, browser plug-ins may be placed in the ‘C:\Program Files\Safari\plugins\’ directory or any other appropriate location provided that the location is placed in the registry under the registry key ‘\Software\MozillaPlugins’.
-