Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I’m frustrated

MacRuby: TDG Hello_World Syntax error

Hello_World.rb example in Chapter 1 of MacRuby: The Definitive Guide gives syntax error under Mountain Lion. Where should I look for help? [I downloaded the code; this is not a typo by me.]

Here's the error as reported by TextWrangler:

hello_world.rb:25: syntax error, unexpected tSYMBEG, expecting kDO or '{' or '('

The line in question reads:

backing:NSBackingStoreBuffered,

In context, it is part of this statement:

window = NSWindow.alloc.initWithContentRect([200, 300, 300, 100],
styleMask:NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask,
backing:NSBackingStoreBuffered,
defer:false)

As I said above, I'm not sure where I should be looking for help on this: perhaps this is the right place.
1 person has
this question
+1
Reply