Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jun 11, 2011
  1. @timburks

    Tweaks to build Nu on Mac OS 10.7 (Lion).

    timburks committed
    All unit tests pass. No new Lion features are used.
Commits on Apr 25, 2011
  1. @timburks
Commits on Apr 2, 2011
  1. @timburks

    Partial workaround for problems running nush in the Xcode console.

    timburks committed
    It is possible to run nush interactively in the Xcode console,
    but without this modification, all input characters are printed
    twice. Also, even with this change, command history is broken.
Commits on Mar 27, 2011
  1. @andrewschleifer
Commits on Mar 26, 2011
  1. @andrewschleifer
Commits on Mar 24, 2011
  1. @timburks
  2. @timburks
  3. @timburks
Commits on Mar 20, 2011
  1. @yusefnapora

    Added a small hack to the NSMethodSignature workaround we're using to…

    yusefnapora committed
    … side-step a bug in Apple's objective C runtime
    Added a small hack to the NSMethodSignature workaround we're using to side-step a bug in Apple's objective C runtime
    method_getNumberOfArguments() and method_getArgumentType() functions.
    The method_getNumberOfArguments() and method_getArgumentType() functions count block objects twice
    (their type signature is "@?" and it counts both the '@' and the '?') so we use -[NSMethodSignature getNumberOfArguments]
    which correctly reports the number of arguments even if some are block objects.  However, getNumberOfArguments returns zero
    if a method has no arguments, while method_getNumberOfArguments() returns 2 (for the implicit arguments cmd and self).
    This commit adds a hack that falls back to method_getNumberOfArguments() and method_getArgumentType() if
    -[NSMethodSignature getNumberOfArguments] return zero.
    This allows us to use pass blocks into objective c methods, and it doesn't break 'nuke test'.
Commits on Mar 19, 2011
  1. @yusefnapora

    Added macros for creating ObjectiveC blocks from Nu to nu/

    yusefnapora committed
    The 'cblock' and 'bridgedblock' macros create Objective C block objects with the following syntax:
    (cblock <return-type> ((<param-type>) <param-name> ...) <nu-code>)
    For example:
    (cblock void ((id) name) (puts "Hello #{name}"))
    'bridgedblock' has the same syntax but returns a NuBridgedBlock object from which you can
    access the NuBlock and C block objects with the 'nuBlock' and 'cBlock' messages.
    These are equivalent:
    (cblock void () (puts "Hello world"))
    ((bridgedblock void () (puts "Hello world")) cBlock)
  2. @yusefnapora
Commits on Mar 14, 2011
  1. @andrewschleifer
  2. @andrewschleifer
Commits on Feb 16, 2011
  1. @andrewschleifer
Commits on Feb 15, 2011
  1. @andrewschleifer
  2. @andrewschleifer
Commits on Feb 10, 2011
  1. @andrewschleifer

    Merge branch 'current'

    andrewschleifer committed
Commits on Jan 13, 2011
  1. @timburks
Commits on Jan 3, 2011
  1. @timburks
Commits on Jan 1, 2011
  1. @jab

    main.h was renamed NuMain.h

    jab committed
    casualty of 91be0c1
Commits on Dec 19, 2010
  1. @andrewschleifer
  2. @andrewschleifer
  3. @andrewschleifer

    Add XIB file compilation tasks to nuke.

    andrewschleifer committed
    When one or more XIB files are specified in a Nukefile, nuke will now
    compile them with ibtool, the same executable that Xcode uses to compile
    XIB files.
    If you put your XIB files in a directory called "resources", the following
    Nukefile declaration will cause them to be compiled (to NIB files) and
    copied into your application or framework's Resources directory:
        (set @xib_files  (filelist "^resources/.*\.xib$"))
    The compilation is triggered by the nuke "compilation-tasks" macro,
    and the "application-tasks" and "framework-tasks" macros cause
    the compiled file to be copied into the application or framework bundle,
Commits on Dec 16, 2010
  1. @timburks

    comprehensive source file renaming.

    timburks committed
    renamed source files to make them more amenable to inclusion in other projects.
Commits on Dec 12, 2010
  1. @timburks
Commits on Dec 5, 2010
  1. @timburks
Commits on Nov 28, 2010
  1. @andrewschleifer
  2. @andrewschleifer
  3. @andrewschleifer
  4. @andrewschleifer
  5. @andrewschleifer
  6. @andrewschleifer
  7. @timburks

    set tests

    timburks committed
  8. @andrewschleifer
Commits on Nov 25, 2010
  1. @timburks

    return-from operator

    timburks committed
Something went wrong with that request. Please try again.