From: Norman R. <nor...@go...> - 2007-10-26 11:49:01
|
Hi there, im new to rubycocoa so i have a little Problem: I created a nibFile through IB with outlets and actions and =20 instantiated my Controller Class. Almost everything works fine except =20= the case that the outlets that i declared in IB are not 'accessible'. a little example: > class GUIControl < OSX::NSObject > include OSX > > ib_outlets :CalChooseButton, :ChooseButton, :CreateButton > attr_reader :files_to_parse > > > def awakeFromNib > @CalChooseButton.setTitle("new") > end > =85 the outlets have exactly the same names as declared in IB but when i =20 compile the app the following error occurs: > 2007-10-26 13:36:55.385 gui[9929] GUIControl#awakeFromNib: =20 > NoMethodError: undefined method `setTitle' for nil:NilClass What am I doing wrong? It seems to me that something went wrong on =20 the way from IB to my GUIControl.rb but im not quite shure what it was? Thanks in advance regards, norman= |