GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A popular sample Cocoa application rewritten in Nu. Original code by Aaron Hillegass, ported to Nu by Tim Burks.
Homepage: http://programming.nu/posts/2007/12/12/nupagepacker
Clone URL: git://github.com/timburks/nupagepacker.git
timburks (author)
Tue Dec 11 21:50:34 -0800 2007
commit  fe3ab7c151b88c77594f252ec81edf99724f6b62
tree    20146f0d1481550b954e970fd1e3b2cfed1352c3
parent  08ba424fa2efc43f8b56ea0bcbf8485060ddc994
name age message
file Nukefile Sun Dec 09 22:17:50 -0800 2007 Nuke task to build disk image; also now build u... [timburks]
file README Sun Dec 09 14:50:42 -0800 2007 Minor edits. [timburks]
directory nu/ Tue Dec 11 21:50:34 -0800 2007 Moved printOperationWithSettings:error: to Nu. [timburks]
directory objc/ Tue Dec 11 21:50:34 -0800 2007 Moved printOperationWithSettings:error: to Nu. [timburks]
directory resources/ Sun Dec 09 22:02:12 -0800 2007 Updated credits and application name in menus. [timburks]
README
This is a translation of Aaron Hillegass' PagePacker example from Objective-C to Nu.

It is released under the BSD license, the same license as the original PagePacker.

You'll notice that this project contains many fewer files than the original. This is partly because Nu code is more 
concise.  But it also reflects my view that dividing code across multiple files makes it less readable, much like 
organizing a novel with each character's dialogue in a separate chapter.

All but four methods were converted to Nu. Of these four, two or three may be representable in Nu with future 
improvements.

I've never used AppleScript (and don't plan to), so the scripting support in scripting.nu is untested. I've attempted to 
test everything else, but there may still be problems that I haven't found.

Please consider this a work in progress and an attempted proof of concept. It's goal is to demonstrate that Nu can be 
used to develop significant Cocoa applications.  Writing this has helped me make Nu a lot better; perhaps reading it 
will help others see as many Nu opportunities as I do.

Tim Burks
Los Altos, CA
December 2007