Re: Open my Application via safari
Re: Open my Application via safari
- Subject: Re: Open my Application via safari
- From: Yvon Thoraval <email@hidden>
- Date: Fri, 3 Nov 2006 05:34:44 +0100
Le 2 nov. 06 à 18:40, Yorh a écrit :
Does anyone is able to send me a very basic example (an empty
project), with this function?
I will try on my mac ...
first may be i've misunderstood your question.
in my case i've an app called "BookmarksMerge" (it's sleeping not
released) able to merge bookmarks from any browser to any browser (on
Mac OS X thought).
this functionnality could be called from the browser itself, for
example if in the browser's URL field you enter :
"bmkm:fusiond"
note bmkm is by analogy the "same" as man:ls you might use in Safari
when you want to see the man page of ls into safari (thanks to sogudi).
then, entering that in your browser window will launch my app
"BookmarksMerge.app" with the correct setting.
in short, if it's thi kind of behaviour you want, you have to provide :
handleGetURLEvent(event)
and also declare in your plist :
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLIconFile</key>
<string>BookmarksMerge</string>
<key>CFBundleURLName</key>
<string>bmkm</string>
<key>CFBundleURLSchemes</key>
<array>
<string>bmkm</string>
</array>
</dict>
</array>
and leave all the browsers untouched except firefox where you have to
register this new kink of URL...
let me know if this answer to your question, i could help you further
however keep in mond my app is written in RubyCocoa, then you would
have to translate from rubycocoa dialect to ObjC one.
for example here is the way we get an instance of NSAlert in
rubycocoa dialect :
@alert=OSX::NSAlert.alertWithMessageText_defaultButton_alternateButton_o
therButton_informativeTextWithFormat("", "Valider", "Annuler", "", "")
best,
Yvon _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden