Hi Laurent & Robert, Thanks! I'm going places now :) On 23 Feb 2011, at 22:13, Laurent Sansonetti wrote:
Hi Rob,
ib_outlets is an old RubyCocoa craft that is not supported in MacRuby since a long time. You can define IB outlets using the attr_writer or attr_accessor methods. You can define IB actions by defining methods accepting a single argument, named 'sender'.
There are lots of documentation about this on the net. Here is a pointer to a nice tutorial that you might be interested to follow.
http://blog.phusion.nl/2010/03/12/creating-our-very-first-mac-application-wi...
Laurent
On Feb 23, 2011, at 1:57 PM, Rob Gleeson wrote:
Hi
I'm giving my first MacRuby application a shot, and I'm sort of blind to be honest :) I've added a NSWindowController, attached it to my window, saved the classes in Interface Builder, but when I build and run my application, I get a NoMethodError for 'ib_outlets'.
My controller inherits from NSResponder.
The stranger thing is, I guess, when I remove any code referencing ib_outlets, the same error is raised again. NoMethodError.
Any advice? What class defines ib_outlets? Am I doing it completely wrong? Thanks.
-- Rob
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- Rob