Skip to content

Commit

Permalink
[interapp] Clean up documentation and move custom methods to the end …
Browse files Browse the repository at this point in the history
…of the sample catalog.
  • Loading branch information
jverkoey committed Sep 28, 2011
1 parent 1f2693c commit 0a6b22d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
25 changes: 12 additions & 13 deletions examples/interapp/catalog/src/CatalogTableViewController.m
Expand Up @@ -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],
Expand All @@ -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];
Expand Down
8 changes: 4 additions & 4 deletions src/interapp/src/NIInterapp.h
Expand Up @@ -296,7 +296,7 @@
/**
* Returns YES if the supplied application is installed.
*
* @fn NIInterapp::applicationIsInstalledWithScheme
* @fn NIInterapp::applicationIsInstalledWithScheme:
*/

/**
Expand All @@ -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:
*/

/**
Expand Down

0 comments on commit 0a6b22d

Please sign in to comment.