差分
== 実装 ==
=== カスタムURLスキームを有効にする ===
以下でカスタムURLスキームが利用可能になる。
# Xamarin Studioでプロジェクト内の「Info.plist」を開く
# 「URL Schems」にURLスキーム名を入れる(例:monobook)
=== カスタムURLスキームで呼ばれるメソッドを作る ===
次にURLスキームが叩かれた際に呼ばれるメソッドの登録と実装をする。
<source lang="csharp">
{
// URLスキームで呼ばれるメソッドを指定する。
// Export("handleGetURLEvent:withReplyEvent:")属性が付いたメソッドが呼ばれる。
var appleEventManager = NSAppleEventManager.SharedAppleEventManager;
appleEventManager.SetEventHandler(this
/// <summary>
/// NSAppleEventDescriptorのParamDescriptorForKeywordメソッドに指定する定数。 /// Xamarin.Macに定数らしきものが見当たらなかったので作ったMacに定数らしきものが見当たらなかったのでxcode眺めつつ作った。
/// </summary>
public static class AEKeyword
</source>
open "monobook://"
open "monobook://inbox"