<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,8 +6,8 @@
 //  Copyright 2009 Michael Sanders. All rights reserved.
 
 #import &lt;Cocoa/Cocoa.h&gt;
+#import &quot;ImageCompressor.h&quot;
 @class DragView;
-@class ImageCompressor;
 @class LoadingViewController;
 @class PreferenceController;
 
@@ -15,7 +15,7 @@ extern NSString * const windowPosKey;
 extern NSString * const squashLevelKey;
 extern NSString * const pngoutPathKey;
 
-@interface AppController : NSObject
+@interface AppController : NSObject &lt;ImageCompressorDelegate&gt;
 {
 	IBOutlet DragView *dragView;
 	IBOutlet NSWindow *mainWindow;</diff>
      <filename>PNGSquash/AppController.h</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,13 @@
 
 #import &lt;Foundation/Foundation.h&gt;
 
+@protocol ImageCompressorDelegate &lt;NSObject&gt;
+
+- (void)compressedFile:(NSString *)infile toFile:(NSString *)outfile;
+- (BOOL)runCompressor:(NSString *)compressor forFile:(int)fileNum;
+
+@end
+
 @interface ImageCompressor : NSObject
 {
 	NSArray *outfiles; // The files to be compressed
@@ -20,8 +27,9 @@
 	unsigned int outfilesCount;
 	unsigned int compressorCount; // Count of compressors being used
 
+	id &lt;ImageCompressorDelegate&gt; delegate;
 	SEL didEndSelector;
-	id delegate, compressDelegate;
+	id compressDelegate;
 }
 
 @property (nonatomic, retain) id delegate;</diff>
      <filename>PNGSquash/ImageCompressor.h</filename>
    </modified>
    <modified>
      <diff>@@ -68,10 +68,7 @@
 	if (progIndex &gt;= compressorCount) {
 		if (delegate &amp;&amp; [delegate respondsToSelector:
 							@selector(compressedFile:toFile:)]) {
-			// Gets rid of warnings about unknown method
-	        [delegate performSelector:@selector(compressedFile:toFile:)
-						   withObject:infile
-						   withObject:outfile];
+			[delegate compressedFile:infile toFile:outfile];
 		}
 		progIndex = 0;
 		imageIndex++;</diff>
      <filename>PNGSquash/ImageCompressor.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9a76c0e189240ce3c4b76a2665cabdf8bb5d6905</id>
    </parent>
  </parents>
  <author>
    <name>Michael Sanders</name>
    <email>msanders42@gmail.com</email>
  </author>
  <url>http://github.com/msanders/PNGSquash/commit/bf26e161553aa495e57d15bd1d5b9e5d7bac3492</url>
  <id>bf26e161553aa495e57d15bd1d5b9e5d7bac3492</id>
  <committed-date>2009-06-28T02:25:42-07:00</committed-date>
  <authored-date>2009-06-28T02:12:13-07:00</authored-date>
  <message>now using protocol for ImageCompressor delegate</message>
  <tree>59824f8ab7ce015765616f2c8f99373c34a8a094</tree>
  <committer>
    <name>Michael Sanders</name>
    <email>msanders42@gmail.com</email>
  </committer>
</commit>
