Skip to content

Commit

Permalink
clean up CWApplicationRegistry documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Machx committed Mar 27, 2013
1 parent bc70dc8 commit 443f832
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Source/CWApplicationRegistry.h
Expand Up @@ -38,7 +38,7 @@ static const NSInteger kPidNotFound = -1;
Searches all the applications listed as running and if the application is
found then returns YES, otherwise returns NO.
@param appName a NSString with the app name you wish to check
@param appName the name of the application to be checked if it's running
@return a BOOL with YES if the app is running, otherwise NO
*/
+(BOOL)applicationIsRunning:(NSString *)appName;
Expand All @@ -49,7 +49,7 @@ static const NSInteger kPidNotFound = -1;
Searches all the applications listed as running and if the application is
found then returns its pid, otherwise returns kPidNotFound (-1).
@param appName a NSString with the name of the app whose pid you want
@param appName the name of the app whose pid you want
@return a NSInteger with the pid or kPidNotFound (-1) if not found
*/
+(NSInteger)pidForApplication:(NSString *)appName;
Expand All @@ -60,10 +60,8 @@ static const NSInteger kPidNotFound = -1;
Searches for all the applications listed as running and if the application is
running then it returns the apps bundle identifier, otherwise returns nil.
@param appName a NSString with the name of the application whose bundle
identifier you want
@return a NSString with the bundle identifier of the app name passed in or nil
if the app isn't running
@param appName the name of the application whose bundle identifier you want
@return a NSString of the bundle identifier of the app name passed in or nil
*/
+(NSString *)bundleIdentifierForApplication:(NSString *)appName;

Expand All @@ -74,8 +72,7 @@ static const NSInteger kPidNotFound = -1;
this returns the NSRunningApplication intance corresponding to that particular
application.
@param appName a NSString with the name of the application whose corresponding
NSRunningApplication you want
@param appName the name of the application whose instance you want
@return the NSRunningApplication instance corresponding to appName, else nil
*/
+(NSRunningApplication *)runningAppInstanceForApp:(NSString *)appName;
Expand Down

0 comments on commit 443f832

Please sign in to comment.