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)
Sun Dec 09 22:02:12 -0800 2007
commit  ded56fa59dd81f87319bca9523d6e3b904e58bef
tree    ccb221a64b2fd0f2129b6a70e6790334a532dded
parent  f35c146e5a74a94af8b4c16d1b81c33ae4496bd0
name age message
file Nukefile Sun Dec 09 14:45:53 -0800 2007 Polish. Added comments and build step that &quo... [timburks]
file README Sun Dec 09 14:50:42 -0800 2007 Minor edits. [timburks]
directory nu/ Sun Dec 09 14:45:53 -0800 2007 Polish. Added comments and build step that &quo... [timburks]
directory objc/ Sat Dec 01 23:51:03 -0800 2007 Converted scripting support to Nu, added README. [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