Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added support for ignoring apps that require an EULA

  • Loading branch information...
commit 90c4e4416eca010c8b1ca17f031d9b09b5383c8f 1 parent 36db68f
Kyle Conroy authored

Showing 2 changed files with 11 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 0 Program.h
  2. +7 4 Program.m
4 Program.h
@@ -28,6 +28,8 @@
28 28 NSString *mountPoint;
29 29 NSMutableString *currentStringValue;
30 30 NSMutableString *pastStringValue;
  31 + NSPipe *mountOut;
  32 + NSTask *mountTask;
31 33 long long totalLength;
32 34 long long gotLength;
33 35 float progress;
@@ -42,6 +44,8 @@
42 44 @property (retain) NSString *mountPoint;
43 45 @property (retain) NSMutableString *currentStringValue;
44 46 @property (retain) NSMutableString *pastStringValue;
  47 +@property (retain) NSPipe *mountOut;
  48 +@property (retain) NSTask *mountTask;
45 49 @property (readwrite) bool hasAgreement;
46 50 @property (readwrite) float progress;
47 51 @property (readwrite) long long gotLength;
11 Program.m
@@ -23,6 +23,9 @@ @implementation Program
23 23 @synthesize pastStringValue;
24 24 @synthesize mountPoint;
25 25
  26 +@synthesize mountOut;
  27 +@synthesize mountTask;
  28 +
26 29 -(Program*) initWithTitle:(NSString*)app url:(NSString*)durl {
27 30 self = [super init];
28 31
@@ -214,11 +217,11 @@ - (void) installDmg {
214 217 return;
215 218 }
216 219
217   - NSPipe *tout = [[NSPipe alloc] init];
218   - NSTask *task = [[NSTask alloc] init];
  220 + NSPipe *mountOut = [[NSPipe alloc] init];
  221 + NSTask *mountTask = [[NSTask alloc] init];
219 222
220   - [task setLaunchPath:@"/usr/bin/hdiutil"];
221   - [task setStandardOutput:tout];
  223 + [mountTask setLaunchPath:@"/usr/bin/hdiutil"];
  224 + [mountTask setStandardOutput:mountOut];
222 225
223 226
224 227 // TODO Add @"-nobrowse" back into the mix

0 comments on commit 90c4e44

Please sign in to comment.
Something went wrong with that request. Please try again.