Skip to main content
11 of 21
deleted 1601 characters in body
Dave DeLong
  • 5.3k
  • 1
  • 17
  • 12

StackKit: an API framework for Cocoa

##About

StackKit is a library for accessing the Stack Exchange API from within Cocoa/Cocoa Touch applications. It is heavily modeled after the CoreData framework. To request objects, you create a "fetch request" and specify the kind of object ("entity"), how to limit the results (a "predicate"), and how you want the results sorted ("sort descriptor"). You can execute this request on any site in the Stack Exchange network, and you'll get back an array of objects.

##Code Snippet

//fetch the user with user id "115730"
SKFetchRequest * request = [[SKFetchRequest alloc] init];
[request setEntity:[SKUser class]];
[request setPredicate:[NSPredicate predicateWithFormat:@"userID = %d", 115730]];

SKSite *stackOverflow = [SKSite stackOverflowSite];
[stackOverflow executeFetchRequest:request withCompletionHandler:^(NSArray *results) {
  NSLog(@"received results: %@", results);
}];
[request release];

###License

StackKit is available under the MIT license.

###Download

StackKit can be downloaded from its Github repository at http://stackkit.com

###Platform

StackKit is compatible with iOS 4+ and Mac OS X 10.6+.

##Contact

StackKit is being developed by myself (Dave DeLong), with assistance from Perspx, Can Berk Güder, and Brock Woolf.

##Code

StackKit is written in Objective-C. If you find a bug or would like to help contribute to it, please contact me via the project repository on Github.

Dave DeLong
  • 5.3k
  • 1
  • 17
  • 12