Twitter経由で知ったチュートリアル。MacRubyからGrowl通知を作成する。
見たところ実質的なコードは
def awakeFromNib()
GrowlApplicationBridge.setGrowlDelegate(self)
GrowlApplicationBridge.notifyWithTitle("Our Growling Title",
description: "this is a really big description of really cool things! now you can take over the world with Growl from MacRuby!",
notificationName: "Test",
iconData: nil,
priority: 0,
isSticky: false,
clickContext: nil)
end
これだけで、こんなふうにGrowl notificationができあがるみたい。うむ、明日やってみるか。
0 件のコメント:
コメントを投稿