Permalink
Browse files

[interapp] Clean up documentation and move custom methods to the end …

…of the sample catalog.
  • Loading branch information...
1 parent 1f2693c commit 0a6b22d83f920cd10f7eda3159aedf35d04775d0 @jverkoey jverkoey committed Sep 28, 2011
Showing with 16 additions and 17 deletions.
  1. +12 −13 examples/interapp/catalog/src/CatalogTableViewController.m
  2. +4 −4 src/interapp/src/NIInterapp.h
@@ -168,8 +168,17 @@ - (NSArray *)rows {
[^{ return [NIInterapp twitterWithMessage:@"I'm playing with the Nimbus sample apps! http://jverkoey.github.com/nimbus"];} autorelease], @"block", nil],
[NSDictionary dictionaryWithObjectsAndKeys: @"featherless", @"title",
[^{ return [NIInterapp twitterProfileForUsername:@"featherless"];} autorelease], @"block", nil],
-
+ @"Instagram",
+ [NSDictionary dictionaryWithObjectsAndKeys: @"Open the app", @"title",
+ [^{ return [NIInterapp instagram];} autorelease], @"block", nil],
+ [NSDictionary dictionaryWithObjectsAndKeys: @"Camera", @"title",
+ [^{ return [NIInterapp instagramCamera];} autorelease], @"block", nil],
+ [NSDictionary dictionaryWithObjectsAndKeys: @"featherless", @"title",
+ [^{ return [NIInterapp instagramProfileForUsername:@"featherless"];} autorelease], @"block", nil],
+ [NSDictionary dictionaryWithObjectsAndKeys: @"Open local image in Instagram", @"title",
+ [NSValue valueWithPointer:@selector(openInstagramImage:)], @"selector", nil],
+
@"Custom Application",
[NSDictionary dictionaryWithObjectsAndKeys: @"Open custom app (RAWR:)", @"title",
[^{ return [NIInterapp applicationWithScheme:@"RAWR:"];} autorelease], @"block", nil],
@@ -178,21 +187,11 @@ - (NSArray *)rows {
andAppStoreId:@"000000000"];} autorelease], @"block", nil],
[NSDictionary dictionaryWithObjectsAndKeys: @"Custom app with url", @"title",
[^{ return [NIInterapp applicationWithScheme:@"RAWR:"
- andPath:@"//friends/blah"];} autorelease], @"block", nil],
+ andPath:@"//friends/blah"];} autorelease], @"block", nil],
[NSDictionary dictionaryWithObjectsAndKeys: @"Custom app with url or AppStore", @"title",
[^{ return [NIInterapp applicationWithScheme:@"RAWR:"
appStoreId:@"000000000"
- andPath:@"//friends/blah"];} autorelease], @"block", nil],
-
- @"Instagram",
- [NSDictionary dictionaryWithObjectsAndKeys: @"Open the app", @"title",
- [^{ return [NIInterapp instagram];} autorelease], @"block", nil],
- [NSDictionary dictionaryWithObjectsAndKeys: @"Camera", @"title",
- [^{ return [NIInterapp instagramCamera];} autorelease], @"block", nil],
- [NSDictionary dictionaryWithObjectsAndKeys: @"featherless", @"title",
- [^{ return [NIInterapp instagramProfileForUsername:@"featherless"];} autorelease], @"block", nil],
- [NSDictionary dictionaryWithObjectsAndKeys: @"Open local image in Instagram", @"title",
- [NSValue valueWithPointer:@selector(openInstagramImage:)], @"selector", nil],
+ andPath:@"//friends/blah"];} autorelease], @"block", nil],
nil];
[rows retain];
@@ -296,7 +296,7 @@
/**
* Returns YES if the supplied application is installed.
*
- * @fn NIInterapp::applicationIsInstalledWithScheme
+ * @fn NIInterapp::applicationIsInstalledWithScheme:
*/
/**
@@ -309,20 +309,20 @@
* Opens the supplied application. If the supplied application is not installed, will open the
* App Store to the specified ID download page.
*
- * @fn NIInterapp::applicationWithScheme:andAppStoreId
+ * @fn NIInterapp::applicationWithScheme:andAppStoreId:
*/
/**
* Opens the supplied application.
*
- * @fn NIInterapp::applicationWithScheme:andPath
+ * @fn NIInterapp::applicationWithScheme:andPath:
*/
/**
* Opens the supplied application, to the specified path. If the supplied application is not installed, will open the
* App Store to the download page for the specified AppStoreId.
*
- * @fn NIInterapp::applicationWithScheme:appStoreId:andPath
+ * @fn NIInterapp::applicationWithScheme:appStoreId:andPath:
*/
/**

0 comments on commit 0a6b22d

Please sign in to comment.