Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Mar 24, 2014
  1. Merge branch 'gnustep-libobjc2' of github.com:timburks/nu

    authored
    Conflicts:
    	Nukefile
Commits on Jul 6, 2013
  1. The parser now merges consecutive labels.

    authored
    When labels such as foo: and bar: appear consecutively,
    they are combined into a single label foo:bar:.
    
    This is helpful when generating markup from the automatic &-operators;
    now attributes can contain ':' characters.
Commits on Jun 25, 2013
Commits on May 16, 2013
  1. Fixed Darwin build.

    authored
Commits on May 15, 2013
  1. Preliminary support for GNUstep+libobjc2.

    authored
    All unit tests pass.
Commits on Apr 2, 2013
Commits on Mar 21, 2013
Commits on Mar 15, 2013
Commits on Feb 28, 2013
  1. Add support for embedded classes and ids to NuMarkupOperator

    authored
    I've been generating a lot of HTML with Nu and decided to
    take this simple extension from the Hiccup Clojure library.
    
    Now when we specify a markup element with the (&element)
    automatic operator, we can add classes and id values by
    including "." and "#" in the element name.
    
    Examples:
    
    % (puts (&div))
    <div></div>
    
    % (puts (&div.x))
    <div class="x"></div>
    
    % (puts (&div#main))
    <div id="main"></div>
    
    % (puts (&div#main.x1.x2.x3))
    <div id="main" class="x1" class="x2" class="x3"></div>
    
    Beware that this means that the '#' can now be included in symbols,
    so if you have code like "this#", you will be unpleasantly surprised
    by this change.
Commits on Feb 18, 2013
  1. @andrewschleifer
Commits on Dec 18, 2012
  1. @andrewschleifer

    Add "map" to NSDictionary

    andrewschleifer authored committed
    If you send the map: message to a dictionary and it will apply the provided
    callable to each value and return another dictionary with the results set for
    the corresponding keys.
    
    E.g.:
    
        % (set origin (dict "alpha" 10 "bravo" 20))
        <__NSDictionaryM:7f9224202c50>
        % (set destination (origin map: (do (x y) (+ 1 y))))
        <__NSDictionaryM:7f9224202f40>
        % (destination "bravo")
        21
Commits on Nov 12, 2012
  1. Modifications to directly support HTML markup.

    authored
    The &html operator includes the <!DOCTYPE html> prefix.
    By default, only the "void elements" specified in the
    HTML spec are allowed to be empty.
    
    See section 4.3 of http://www.w3.org/TR/html-markup/syntax.html.
Commits on Sep 12, 2012
Commits on Jul 26, 2012
  1. simplified build to rely on Xcode command-line tools.

    authored
    also fixed unit test that expected "Xcode" to be installed.
    It fails when a developer preview is installed instead (under a different name).
Commits on Oct 16, 2011
  1. @philipwhite

    Added a signature operator to allow nu code an easy way to convert sy…

    philipwhite authored
    …mbols to ObjC type signatures.
    
    Updated the cblock macro in cblocks.nu to use the signature operator.
    Added a test for c blocks to the TestBridge class.
Commits on Oct 15, 2011
  1. @philipwhite

    removed c blocks bridge code that worked around a bug in Snow Leopard…

    philipwhite authored
    … and added a test case for cblocks
Commits on Sep 16, 2011
  1. @itfrombit

    Fixed test case

    itfrombit authored
  2. @itfrombit
Commits on Aug 27, 2011
  1. improved handling of init* methods that don't return self.

    authored
    NSXMLDocument is one of many classes whose init methods return
    something other than self. Others include NSArray and NSDictionary,
    which return a special "placeholder" subclass instance from alloc.
    NSXMLDocument behaves similarly but without an explicit placeholder
    subclass.
    
    This change should eliminate a crash that occurred when placeholders
    were overreleased.
    
    In past versions of Nu, we looked for known explicit placeholders
    and handled them specially, but this was removed in Lion when the
    NSArray and NSDictionary placeholders subclasses appeared to to
    ignore release messages. However, this was not true for
    NSXMLDocument, which implicitly uses the placeholder pattern and
    does not have a placeholder subclass.
    
    Now we watch methods whose names begin with "init" to see if they
    return their original target or not, which allows us to properly
    handle the placeholder pattern whether it is used from an explicit
    placeholder subclass or not.
Commits on Aug 24, 2011
  1. @chapados

    Add test cases for "Normal" and "Fast" message forwarding sequences.

    chapados authored
    * "Normal" message forwarding
    implement:
    -forwardInvocation:,
    -respondsToSelector:,
    -methodSignatureForSelector:
    
    * "Fast" message forwarding
    implement:
    -forwardingTargetForSelector:
Commits on Jul 9, 2011
Commits on Jul 4, 2011
  1. @itfrombit
Commits on Jun 21, 2011
  1. moved Xcode project to Xcode directory, disabled some tests that are …

    authored
    …broken for iOS simulator-only.
    
    oddly, these tests pass on the device.
Commits on Jun 19, 2011
  1. reenabled more unit tests for iOS.

    authored
    oddly, test_match.nu is broken in the simulator only.
  2. operator cleanup

    authored
    The (ivars) and (ivar-accessor) operators now do nothing and should
    be removed. Instance variables are now implicitly created and
    stored using associated objects, so there is no overhead for their
    potential use.
    
    The (cmethod) and (imethod) operators are still available but with
    a deprecation warning in the log. They should be replaced by (+) and
    (-), which are more consistent with Objective-C usage.
    
    The (def) operator is gone. It was carried over from Ruby and in
    practice, the equivalent (function) is preferred.
Commits on Jun 18, 2011
  1. tests for bridged structures.

    authored
  2. fixed unit tests to run on iOS devices.

    authored
    2 problems:
    1. the property list test was writing to /tmp
    2. we needed a handler pool to run on iOS devices detached from the debugger.
Something went wrong with that request. Please try again.