Revision: 5528
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5528&view=rev
Author:   hofman
Date:     2009-08-10 15:02:14 +0000 (Mon, 10 Aug 2009)

Log Message:
-----------
don't hard-code NSTask class, use self

Modified Paths:
--------------
    trunk/NSTask_SKExtensions.m

Modified: trunk/NSTask_SKExtensions.m
===================================================================
--- trunk/NSTask_SKExtensions.m 2009-08-09 21:40:09 UTC (rev 5527)
+++ trunk/NSTask_SKExtensions.m 2009-08-10 15:02:14 UTC (rev 5528)
@@ -42,7 +42,7 @@
 @implementation NSTask (SKExtensions) 
 
 + (NSTask *)launchedTaskWithLaunchPath:(NSString *)launchPath 
arguments:(NSArray *)arguments currentDirectoryPath:(NSString *)directoryPath {
-    NSTask *task = [[[NSTask alloc] init] autorelease];
+    NSTask *task = [[[self alloc] init] autorelease];
     
     [task setLaunchPath:launchPath];
     if (directoryPath)
@@ -63,7 +63,7 @@
 }
 
 + (BOOL)runTaskWithLaunchPath:(NSString *)launchPath arguments:(NSArray 
*)arguments currentDirectoryPath:(NSString *)directoryPath {
-    NSTask *task = [[self class] launchedTaskWithLaunchPath:launchPath 
arguments:arguments currentDirectoryPath:directoryPath];
+    NSTask *task = [self launchedTaskWithLaunchPath:launchPath 
arguments:arguments currentDirectoryPath:directoryPath];
     BOOL success = task != nil;
     
     if (success) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to