From 0a6b22d83f920cd10f7eda3159aedf35d04775d0 Mon Sep 17 00:00:00 2001 From: jverkoey Date: Wed, 28 Sep 2011 09:44:13 -0700 Subject: [PATCH] [interapp] Clean up documentation and move custom methods to the end of the sample catalog. --- .../catalog/src/CatalogTableViewController.m | 25 +++++++++---------- src/interapp/src/NIInterapp.h | 8 +++--- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/examples/interapp/catalog/src/CatalogTableViewController.m b/examples/interapp/catalog/src/CatalogTableViewController.m index 0d4ae62c0..6dc7119b7 100644 --- a/examples/interapp/catalog/src/CatalogTableViewController.m +++ b/examples/interapp/catalog/src/CatalogTableViewController.m @@ -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]; diff --git a/src/interapp/src/NIInterapp.h b/src/interapp/src/NIInterapp.h index 368a24b90..5b5579102 100644 --- a/src/interapp/src/NIInterapp.h +++ b/src/interapp/src/NIInterapp.h @@ -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: */ /**