NuUnknownMessage: unable to find message handler for (<< 0)

1 view
Skip to first unread message

Paul Barry

unread,
Apr 19, 2009, 9:12:06 PM4/19/09
to Programming Nu
Just trying to follow along with notes/DEMO after a fresh install.
Seems to be installed correctly, the outcome of "nuke test" is:

All: completed 245 tests/890 assertions/0 failures/0 errors

But I'm running into this problem:

pbarry@pbarry-macbook:~/src/nu $ nush
Nu Shell.
% (set a (NSMutableArray))
NSMutableArray
% (class NSMutableArray
- (imethod (void) << (id) object is (self addObject:object)))
()
% (a << 0)
NuUnknownMessage: unable to find message handler for (<< 0)
% (class NSMutableArray
- (imethod (void) << (id) object is (self addObject:object)))
()
% (a << 0)
NuUnknownMessage: unable to find message handler for (<< 0)
% (set a (NSMutableArray))
NSMutableArray
% (a << 0)
NuUnknownMessage: unable to find message handler for (<< 0)

Tim Burks

unread,
Apr 19, 2009, 9:25:40 PM4/19/09
to program...@googlegroups.com

Hi Paul,

try

% (set a (NSMutableArray array))

or use the "array" operator for a shorthand form:

% (set a (array))

When you "(set a (NSMutableArray))", "a" is bound to the
NSMutableArray class.

Tim

Paul Barry

unread,
Apr 19, 2009, 10:01:36 PM4/19/09
to Programming Nu
Oh, right. I missed that array in the first part. My fault, thanks
for the help!
Reply all
Reply to author
Forward
0 new messages