Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mark private methods in imp

  • Loading branch information...
commit 0983713aa28c86e1ae3e97ee41b0bbd91fc0d65f 1 parent c3c951f
@Machx authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 Source/CWTask.m
View
7 Source/CWTask.m
@@ -95,6 +95,7 @@ - (NSString *) description {
}
/**
+ Private Method
Any arguments to the task are set here
*/
- (void) _configureTask {
@@ -110,6 +111,7 @@ - (void) _configureTask {
}
/**
+ Private Method
Runs all the validation methods and returns NO if any of them fail,
returns YES otherwise
@@ -126,6 +128,7 @@ - (BOOL) _validateTask:(NSError **)error {
}
/**
+ Private Method
Checks for a non nil value of executable and checks that the executable
actually exists if either fail it writes out a kCWTaskInvalidExecutable error
to the NSError pointer and returns NO
@@ -145,6 +148,7 @@ - (BOOL) _validateExecutable:(NSError **)error {
}
/**
+ Private Method
if there is a non nil directory path provided it validates that it actually
exists if that fails it writes out a kCWTaskInvalidDirectory error & returns NO
@@ -165,6 +169,7 @@ - (BOOL) _validateDirectoryPathIfApplicable:(NSError **)error {
}
/**
+ Private Method
CWTask behaves just like NSTask in that each task object may only run once.
This checks to see if it has already run and if it has write out a
kCWTaskAlreadyRun error to the error pointer and then returns NO
@@ -197,6 +202,7 @@ - (NSString *) launchTask:(NSError **)error {
}
/**
+ Private Method
actual launching of the task and extracting the results from
the NSPipe into a NSString object occur here
@@ -226,6 +232,7 @@ - (NSString *) _resultsStringFromLaunchedTask:(NSError **)error {
}
/**
+ Private Method
any post run actions after the task have been launched occurr here
@param error a NSError object to be written to if something fails
Please sign in to comment.
Something went wrong with that request. Please try again.