0
+// All that's left of the original Objective-C source for PagePacker.
0
+// Substantially derived from original Objective-C source code by Aaron Hillegass.
0
+// The original copyright notice is below.
0
+// Changes in this version are copyright (c) 2007 Tim Burks, Neon Design Technology, Inc.
0
Copyright (c) 2007, Big Nerd Ranch, Inc.
0
@@ -34,29 +41,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
0
#import <Cocoa/Cocoa.h>
0
// The code below is what remains of Aaron's original Objective-C source.
0
-// All comments are mine (Tim Burks).
0
-// We leave these class and method definitions in Objective-C.
0
-// For various reasons, each is currently not representable in Nu.
0
-@interface MyDocument : NSDocument
0
- // since we use these two ivars in Objective-C, keep their declarations here.
0
- // all other ivars are declared in Nu.
0
+// Except where otherwise noted, all comments below are mine (Tim Burks).
0
-@implementation MyDocument
0
-// We can't declare a method in Nu with an argument that's an (NSError **)
0
-- (id) printOperationWithSettings:(id)printSettings error:(NSError **)outError
0
- [NSPrintOperation printOperationWithView:packerView printInfo:[self printInfo]];
0
+// We leave this class declaration and these three method definitions in Objective-C.
0
+// For various reasons, each method is currently not representable in Nu.
0
@interface PackerView : NSView
0
@@ -66,6 +54,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
0
@interface PackerView (Nu)
0
+// declare this interface here so that our Objective-C code can call our Nu method.
0
- (void) setImageablePageRect:(NSRect) r;
0
@@ -83,6 +72,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
0
// Nu can't declare methods with arguments that are pointers to NSRanges
0
- (BOOL)knowsPageRange:(NSRange *)rptr
0
+ // Comment from Aaron:
0
// As a sort of odd side-effect, I'm also informing the view
0
// of how much of the page the printer can actually draw.
0
// I waited until now so that I could use the printer that the
Comments
No one has commented yet.