lalit / SJADNShareController

SJADNShareController can be used to share text only (at the moment) to App.net, either as part of the sharing menu, on Mountain Lion, or alone. It uses App.net's web post intent and opens the post box already filled in, in the user's browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SJADNShareController

###About

SJADNShareController can be used to share text only (at the moment) to App.net, either as part of the sharing menu, on Mountain Lion, or alone.

It uses App.net's web post intent and opens the post box already filled in, in the user's browser.

###Usage

####With NSSharingServicePickr (Mountain Lion only)

If you already have an NSButton and suitable NSSharingServicePicker code written, simply set your NSSharingServicePicker's delegate to be SJADNShareController.

SJADNShareController *ADNShareController = [[SJADNShareController alloc] init];

sharingServicePicker.delegate = ADNShareController;

Otherwise, take a look on Stack Overflow to see how to setup a share button, on Mountain Lion, then, see the paragraphs above.

####Standalone

Use shareItems:. Example:

SJADNShareController *ADNShareController = [[SJADNShareController alloc] init];

[ADNShareController shareItems:[NSArray arrayWithObject:@"Here's some text to share on App.net!"]];

###TODO

  • Currently working on using a Kiwi URL to post (kiwi://post?text=Hello%20World for example)

###License

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.

About

SJADNShareController can be used to share text only (at the moment) to App.net, either as part of the sharing menu, on Mountain Lion, or alone. It uses App.net's web post intent and opens the post box already filled in, in the user's browser.