<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -155,9 +155,8 @@
     if (!done) {
         [abortButton setEnabled:NO];
         
-        terminationReason = END_ABORTED;
-
         NSLog(@&quot;aborting&quot;);
+        terminationReason = END_ABORTED;
         [cmd abort];
     } else {
         [self close];
@@ -248,7 +247,6 @@
         [progressIndicator startAnimation:self];
         [progressIndicator setMaxValue:100];
 
-        // TODO calculate size and resize the window
         [statusField setStringValue:NSLocalizedString(@&quot;Converting...&quot;, nil)];
     } else if ([@&quot;- finished&quot; isEqualToString:s]) {
         [progressIndicator setDoubleValue:100];
@@ -262,6 +260,20 @@
             NSLog(@&quot;Could not parse size: %@&quot;);
         }
 
+    } else if ([s hasPrefix:@&quot;- ISO&quot;]) {
+        // type iso
+    } else if ([s hasPrefix:@&quot;- NRG&quot;]) {
+        // type nrg
+        [statusField setStringValue:NSLocalizedString(@&quot;UIF containing NRG not supported yet&quot;, nil)];
+        terminationReason = END_ERROR;
+        [cmd abort];
+    } else if ([s hasPrefix:@&quot;- BIN/CUE&quot;]) {
+        // type bin
+        [statusField setStringValue:NSLocalizedString(@&quot;UIF containing BIN/CUE not supported yet&quot;, nil)];
+        terminationReason = END_ERROR;
+        [cmd abort];
+    } else if ([s hasPrefix:@&quot;- create&quot;]) {
+        // real filename
     } else if ([s hasPrefix:@&quot;  version&quot;]) {
         NSString *sub = [s substringFromIndex:15];
         [versionField setStringValue:sub];
@@ -274,7 +286,6 @@
     } else if ([s hasPrefix:@&quot;Error: &quot;]) {       
         NSLog(@&quot;OUT: [%@]&quot;, s);
 
-        // TODO calculate size and resize the window
         [statusField setStringValue:[self convertError:s]];
 
         terminationReason = END_ERROR;
@@ -301,13 +312,19 @@
     [abortButton setTitle:NSLocalizedString(@&quot;Done&quot;, nil)];
     [abortButton setEnabled:YES];
 
+    NSFileManager *fileManager = [NSFileManager defaultManager];
+
     switch (terminationReason) {
         case END_NORMAL:
-            // TODO calculate size and resize the window
-            [statusField setStringValue:NSLocalizedString(@&quot;Finished successfully&quot;, nil)];
+
+            if ([fileManager fileExistsAtPath:targetName]) {
+                [statusField setStringValue:NSLocalizedString(@&quot;Finished successfully&quot;, nil)];
+            } else {
+                [statusField setStringValue:NSLocalizedString(@&quot;Failed to extract ISO&quot;, nil)];
+            }
+
             break;
         case END_ABORTED:
-            // TODO calculate size and resize the window
             [statusField setStringValue:NSLocalizedString(@&quot;Aborted&quot;, nil)];        
 
             NSFileManager *fileManager = [NSFileManager defaultManager];
@@ -348,36 +365,4 @@
     [super dealloc];
 }
 
-
-
-/*
-
-UIF2ISO 0.1.6
-by Luigi Auriemma
-e-mail: aluigi@autistici.org
-web:    aluigi.org
-
-- open /Users/tcurdt/Desktop/uif2iso/Test.uif
-
-  file size    0000000007af24e3
-  version      4
-  image type   8
-  padding      0
-  sectors      92602
-  sectors size 2048
-  blhr offset  0000000007af10d7
-  blhr size    5132
-  hash         d90c7cb1a9a418ba0d6f1576d31afe2c
-  others       00000040 00000000 01 02 02 00 00000000
-
-- enable magiciso_is_shit encryption
-- ISO output image format
-- create /Users/tcurdt/Desktop/uif2iso/Test.iso
-- start unpacking:
-  000%
-  100%
-- finished
-
-*/
-
 @end</diff>
      <filename>Sources/MyDocument.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8f61a4cdb5ef408e86717ee58a423f2f8b12fa32</id>
    </parent>
  </parents>
  <author>
    <name>Torsten Curdt</name>
    <email>tcurdt@vafer.org</email>
  </author>
  <url>http://github.com/tcurdt/uif2iso4mac/commit/d5c3f3e32d5e92fb30685f45a907942c8c70d53d</url>
  <id>d5c3f3e32d5e92fb30685f45a907942c8c70d53d</id>
  <committed-date>2009-10-08T08:29:55-07:00</committed-date>
  <authored-date>2009-10-08T08:29:55-07:00</authored-date>
  <message>abort for non-ISO</message>
  <tree>7db87ac7ec153e923d460c34406b8a6c435833b8</tree>
  <committer>
    <name>Torsten Curdt</name>
    <email>tcurdt@vafer.org</email>
  </committer>
</commit>
