Watson1978
7/27/2012 - 2:47 AM

MacRuby : NSSharingService

MacRuby : NSSharingService

#
#  AppDelegate.rb
#  tweet
#
#  Created by watson on 2012/07/27.
#

class AppDelegate
  attr_accessor :window
  def applicationDidFinishLaunching(a_notification)
    # Insert code here to initialize your application
    serv = NSSharingService.sharingServiceNamed(NSSharingServiceNamePostOnTwitter)
    serv.performWithItems(["test tweet"])
  end
end