I am looking for a way to send Tweets using the OS X (10.8 and higher) Twitter Account.
I would prefer a way to show the OS X Tweet Window in which i could add the text to be tweeted, so that the user can review the text and send it manually then.
Has anybody already tried this with Xojo?
Any help is highly appreciated.
I don’t recall seeing any platform API’s to do it. You may be able to do it with the notification window that has the tweet box. However I’m not sure thats necessarily permitted as I’m sure that uses Apple’s API key. You may need to use the traditional route of getting a Twitter API key, etc.
There absolutely is. I spent some time trying to get it working a while back, but it looked like it was going to take more time than priorities would allow.
[code]dim s As New NSSharingServiceItemsMBS
s.AddText “Test”
Dim picker As New NSSharingServicePickerMBS(s)
dim v as NSViewMBS = b.NSViewMBS
dim r as NSRectMBS = v.bounds
// somehow Real Studio messes up the coordinate system
r = new NSRectMBS(r.Origin.x, r.Origin.y + 105, r.Size.Width, r.Size.Height)
picker.showRelativeToRect(r, v, picker.NSMaxYEdge)