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= |
From: Eloy D. <elo...@gm...> - 2007-10-26 12:06:33
|
Hi Norman, First of all, welcome to RC! :) Might seem a stupid question (I also don't know if you are knew to IB etc), but just to double check; did you actually hook up the outlets to the contr= ols? If so, could you do something like: def awakeFromNib puts 'awake!' end And see how many times that is printed to the console? Eloy On 10/26/07, Norman Rosner <nor...@go...> wrote: > Hi there, > > im new to rubycocoa so i have a little Problem: > > I created a nibFile through IB with outlets and actions and > instantiated my Controller Class. Almost everything works fine except > 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 > compile the app the following error occurs: > > > 2007-10-26 13:36:55.385 gui[9929] GUIControl#awakeFromNib: > > NoMethodError: undefined method `setTitle' for nil:NilClass > > What am I doing wrong? It seems to me that something went wrong on > the way from IB to my GUIControl.rb but im not quite shure what it was? > > > Thanks in advance > > regards, > > norman > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Norman R. <nor...@go...> - 2007-10-26 12:19:03
|
Eloy! Thanks for your fast answer. 'awake' is printed one time in the =20= console. All Outlets in IB have a Destination... What now ? :) Thanks On 26.10.2007, at 14:06, Eloy Duran wrote: > Hi Norman, > > First of all, welcome to RC! :) > > Might seem a stupid question (I also don't know if you are knew to =20 > IB etc), > but just to double check; did you actually hook up the outlets to =20 > the controls? > > If so, could you do something like: > > def awakeFromNib > puts 'awake!' > end > > And see how many times that is printed to the console? > > Eloy > > On 10/26/07, Norman Rosner <nor...@go...> wrote: >> Hi there, >> >> im new to rubycocoa so i have a little Problem: >> >> I created a nibFile through IB with outlets and actions and >> instantiated my Controller Class. Almost everything works fine except >> 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 >> compile the app the following error occurs: >> >>> 2007-10-26 13:36:55.385 gui[9929] GUIControl#awakeFromNib: >>> NoMethodError: undefined method `setTitle' for nil:NilClass >> >> What am I doing wrong? It seems to me that something went wrong on >> the way from IB to my GUIControl.rb but im not quite shure what it =20= >> was? >> >> >> Thanks in advance >> >> regards, >> >> norman >> ---------------------------------------------------------------------=20= >> ---- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a =20 >> browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a =20 > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Eloy D. <elo...@gm...> - 2007-10-26 12:22:17
|
Hmm.... Is the app something you could put online? With any other code stripped out? Eloy On 10/26/07, Norman Rosner <nor...@go...> wrote: > Eloy! Thanks for your fast answer. 'awake' is printed one time in the > console. > All Outlets in IB have a Destination... > > What now ? :) > > > Thanks > On 26.10.2007, at 14:06, Eloy Duran wrote: > > > Hi Norman, > > > > First of all, welcome to RC! :) > > > > Might seem a stupid question (I also don't know if you are knew to > > IB etc), > > but just to double check; did you actually hook up the outlets to > > the controls? > > > > If so, could you do something like: > > > > def awakeFromNib > > puts 'awake!' > > end > > > > And see how many times that is printed to the console? > > > > Eloy > > > > On 10/26/07, Norman Rosner <nor...@go...> wrote: > >> Hi there, > >> > >> im new to rubycocoa so i have a little Problem: > >> > >> I created a nibFile through IB with outlets and actions and > >> instantiated my Controller Class. Almost everything works fine except > >> 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 > >> compile the app the following error occurs: > >> > >>> 2007-10-26 13:36:55.385 gui[9929] GUIControl#awakeFromNib: > >>> NoMethodError: undefined method `setTitle' for nil:NilClass > >> > >> What am I doing wrong? It seems to me that something went wrong on > >> the way from IB to my GUIControl.rb but im not quite shure what it > >> was? > >> > >> > >> Thanks in advance > >> > >> regards, > >> > >> norman > >> --------------------------------------------------------------------- > >> ---- > >> This SF.net email is sponsored by: Splunk Inc. > >> Still grepping through log files to find problems? Stop. > >> Now Search log events and configuration files using AJAX and a > >> browser. > >> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >> _______________________________________________ > >> Rubycocoa-talk mailing list > >> Rub...@li... > >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >> > > > > ---------------------------------------------------------------------- > > --- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Norman R. <nor...@go...> - 2007-10-26 12:26:38
|
For shure ;) Its on my idisk now: http://idisk.mac.com/jeckyll-Public gui.zip Thanks thanks thanks, the first mailing list in my life with such quick responds *thumbs up* norman On 26.10.2007, at 14:22, Eloy Duran wrote: > Hmm.... Is the app something you could put online? > With any other code stripped out? > > Eloy > > On 10/26/07, Norman Rosner <nor...@go...> wrote: >> Eloy! Thanks for your fast answer. 'awake' is printed one time in the >> console. >> All Outlets in IB have a Destination... >> >> What now ? :) >> >> >> Thanks >> On 26.10.2007, at 14:06, Eloy Duran wrote: >> >>> Hi Norman, >>> >>> First of all, welcome to RC! :) >>> >>> Might seem a stupid question (I also don't know if you are knew to >>> IB etc), >>> but just to double check; did you actually hook up the outlets to >>> the controls? >>> >>> If so, could you do something like: >>> >>> def awakeFromNib >>> puts 'awake!' >>> end >>> >>> And see how many times that is printed to the console? >>> >>> Eloy >>> >>> On 10/26/07, Norman Rosner <nor...@go...> wrote: >>>> Hi there, >>>> >>>> im new to rubycocoa so i have a little Problem: >>>> >>>> I created a nibFile through IB with outlets and actions and >>>> instantiated my Controller Class. Almost everything works fine =20 >>>> except >>>> the case that the outlets that i declared in IB are not =20 >>>> '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 =20 >>>> when i >>>> compile the app the following error occurs: >>>> >>>>> 2007-10-26 13:36:55.385 gui[9929] GUIControl#awakeFromNib: >>>>> NoMethodError: undefined method `setTitle' for nil:NilClass >>>> >>>> What am I doing wrong? It seems to me that something went wrong on >>>> the way from IB to my GUIControl.rb but im not quite shure what it >>>> was? >>>> >>>> >>>> Thanks in advance >>>> >>>> regards, >>>> >>>> norman >>>> -------------------------------------------------------------------=20= >>>> -- >>>> ---- >>>> This SF.net email is sponsored by: Splunk Inc. >>>> Still grepping through log files to find problems? Stop. >>>> Now Search log events and configuration files using AJAX and a >>>> browser. >>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>>> _______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>> >>> >>> --------------------------------------------------------------------=20= >>> -- >>> --- >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a >>> browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ---------------------------------------------------------------------=20= >> ---- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a =20 >> browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a =20 > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Eloy D. <elo...@gm...> - 2007-10-26 12:37:06
|
Ok it seems that it doesn't work if your outlets start with a capital chara= cter. I believe this is also not the preferred way of naming in objc. Eg. calChooseButton instead of CalChooseButton So rename them all to start with a lower case character and you are good to= go! Cheers, Eloy PS: glad to hear you like the response :) On 10/26/07, Norman Rosner <nor...@go...> wrote: > For shure ;) > > Its on my idisk now: > > http://idisk.mac.com/jeckyll-Public > > gui.zip > > Thanks thanks thanks, > > the first mailing list in my life with such quick responds *thumbs up* > > norman > On 26.10.2007, at 14:22, Eloy Duran wrote: > > > Hmm.... Is the app something you could put online? > > With any other code stripped out? > > > > Eloy > > > > On 10/26/07, Norman Rosner <nor...@go...> wrote: > >> Eloy! Thanks for your fast answer. 'awake' is printed one time in the > >> console. > >> All Outlets in IB have a Destination... > >> > >> What now ? :) > >> > >> > >> Thanks > >> On 26.10.2007, at 14:06, Eloy Duran wrote: > >> > >>> Hi Norman, > >>> > >>> First of all, welcome to RC! :) > >>> > >>> Might seem a stupid question (I also don't know if you are knew to > >>> IB etc), > >>> but just to double check; did you actually hook up the outlets to > >>> the controls? > >>> > >>> If so, could you do something like: > >>> > >>> def awakeFromNib > >>> puts 'awake!' > >>> end > >>> > >>> And see how many times that is printed to the console? > >>> > >>> Eloy > >>> > >>> On 10/26/07, Norman Rosner <nor...@go...> wrote: > >>>> Hi there, > >>>> > >>>> im new to rubycocoa so i have a little Problem: > >>>> > >>>> I created a nibFile through IB with outlets and actions and > >>>> instantiated my Controller Class. Almost everything works fine > >>>> except > >>>> 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 > >>>> compile the app the following error occurs: > >>>> > >>>>> 2007-10-26 13:36:55.385 gui[9929] GUIControl#awakeFromNib: > >>>>> NoMethodError: undefined method `setTitle' for nil:NilClass > >>>> > >>>> What am I doing wrong? It seems to me that something went wrong on > >>>> the way from IB to my GUIControl.rb but im not quite shure what it > >>>> was? > >>>> > >>>> > >>>> Thanks in advance > >>>> > >>>> regards, > >>>> > >>>> norman > >>>> ------------------------------------------------------------------- > >>>> -- > >>>> ---- > >>>> This SF.net email is sponsored by: Splunk Inc. > >>>> Still grepping through log files to find problems? Stop. > >>>> Now Search log events and configuration files using AJAX and a > >>>> browser. > >>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >>>> _______________________________________________ > >>>> Rubycocoa-talk mailing list > >>>> Rub...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >>>> > >>> > >>> -------------------------------------------------------------------- > >>> -- > >>> --- > >>> This SF.net email is sponsored by: Splunk Inc. > >>> Still grepping through log files to find problems? Stop. > >>> Now Search log events and configuration files using AJAX and a > >>> browser. > >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >>> _______________________________________________ > >>> Rubycocoa-talk mailing list > >>> Rub...@li... > >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >> > >> > >> --------------------------------------------------------------------- > >> ---- > >> This SF.net email is sponsored by: Splunk Inc. > >> Still grepping through log files to find problems? Stop. > >> Now Search log events and configuration files using AJAX and a > >> browser. > >> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >> _______________________________________________ > >> Rubycocoa-talk mailing list > >> Rub...@li... > >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >> > > > > ---------------------------------------------------------------------- > > --- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Norman R. <nor...@go...> - 2007-10-26 12:40:12
|
Yeah! It works, thanks a lot! norman On 26.10.2007, at 14:37, Eloy Duran wrote: > Ok it seems that it doesn't work if your outlets start with a =20 > capital character. > I believe this is also not the preferred way of naming in objc. > > Eg. calChooseButton instead of CalChooseButton > > So rename them all to start with a lower case character and you are =20= > good to go! > > Cheers, > Eloy > > PS: glad to hear you like the response :) > > On 10/26/07, Norman Rosner <nor...@go...> wrote: >> For shure ;) >> >> Its on my idisk now: >> >> http://idisk.mac.com/jeckyll-Public >> >> gui.zip >> >> Thanks thanks thanks, >> >> the first mailing list in my life with such quick responds *thumbs =20= >> up* >> >> norman >> On 26.10.2007, at 14:22, Eloy Duran wrote: >> >>> Hmm.... Is the app something you could put online? >>> With any other code stripped out? >>> >>> Eloy >>> >>> On 10/26/07, Norman Rosner <nor...@go...> wrote: >>>> Eloy! Thanks for your fast answer. 'awake' is printed one time =20 >>>> in the >>>> console. >>>> All Outlets in IB have a Destination... >>>> >>>> What now ? :) >>>> >>>> >>>> Thanks >>>> On 26.10.2007, at 14:06, Eloy Duran wrote: >>>> >>>>> Hi Norman, >>>>> >>>>> First of all, welcome to RC! :) >>>>> >>>>> Might seem a stupid question (I also don't know if you are knew to >>>>> IB etc), >>>>> but just to double check; did you actually hook up the outlets to >>>>> the controls? >>>>> >>>>> If so, could you do something like: >>>>> >>>>> def awakeFromNib >>>>> puts 'awake!' >>>>> end >>>>> >>>>> And see how many times that is printed to the console? >>>>> >>>>> Eloy >>>>> >>>>> On 10/26/07, Norman Rosner <nor...@go...> wrote: >>>>>> Hi there, >>>>>> >>>>>> im new to rubycocoa so i have a little Problem: >>>>>> >>>>>> I created a nibFile through IB with outlets and actions and >>>>>> instantiated my Controller Class. Almost everything works fine >>>>>> except >>>>>> 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 >>>>>> compile the app the following error occurs: >>>>>> >>>>>>> 2007-10-26 13:36:55.385 gui[9929] GUIControl#awakeFromNib: >>>>>>> NoMethodError: undefined method `setTitle' for nil:NilClass >>>>>> >>>>>> What am I doing wrong? It seems to me that something went =20 >>>>>> wrong on >>>>>> the way from IB to my GUIControl.rb but im not quite shure =20 >>>>>> what it >>>>>> was? >>>>>> >>>>>> >>>>>> Thanks in advance >>>>>> >>>>>> regards, >>>>>> >>>>>> norman >>>>>> -----------------------------------------------------------------=20= >>>>>> -- >>>>>> -- >>>>>> ---- >>>>>> This SF.net email is sponsored by: Splunk Inc. >>>>>> Still grepping through log files to find problems? Stop. >>>>>> Now Search log events and configuration files using AJAX and a >>>>>> browser. >>>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>>>>> _______________________________________________ >>>>>> Rubycocoa-talk mailing list >>>>>> Rub...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>>>> >>>>> >>>>> ------------------------------------------------------------------=20= >>>>> -- >>>>> -- >>>>> --- >>>>> This SF.net email is sponsored by: Splunk Inc. >>>>> Still grepping through log files to find problems? Stop. >>>>> Now Search log events and configuration files using AJAX and a >>>>> browser. >>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>>>> _______________________________________________ >>>>> Rubycocoa-talk mailing list >>>>> Rub...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>> >>>> >>>> -------------------------------------------------------------------=20= >>>> -- >>>> ---- >>>> This SF.net email is sponsored by: Splunk Inc. >>>> Still grepping through log files to find problems? Stop. >>>> Now Search log events and configuration files using AJAX and a >>>> browser. >>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>>> _______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>> >>> >>> --------------------------------------------------------------------=20= >>> -- >>> --- >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a >>> browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ---------------------------------------------------------------------=20= >> ---- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a =20 >> browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a =20 > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Eloy D. <elo...@gm...> - 2007-10-26 12:40:59
|
You're welcome. Enjoy the ride :) Eloy On 10/26/07, Norman Rosner <nor...@go...> wrote: > Yeah! It works, thanks a lot! > > norman > On 26.10.2007, at 14:37, Eloy Duran wrote: > > > Ok it seems that it doesn't work if your outlets start with a > > capital character. > > I believe this is also not the preferred way of naming in objc. > > > > Eg. calChooseButton instead of CalChooseButton > > > > So rename them all to start with a lower case character and you are > > good to go! > > > > Cheers, > > Eloy > > > > PS: glad to hear you like the response :) > > > > On 10/26/07, Norman Rosner <nor...@go...> wrote: > >> For shure ;) > >> > >> Its on my idisk now: > >> > >> http://idisk.mac.com/jeckyll-Public > >> > >> gui.zip > >> > >> Thanks thanks thanks, > >> > >> the first mailing list in my life with such quick responds *thumbs > >> up* > >> > >> norman > >> On 26.10.2007, at 14:22, Eloy Duran wrote: > >> > >>> Hmm.... Is the app something you could put online? > >>> With any other code stripped out? > >>> > >>> Eloy > >>> > >>> On 10/26/07, Norman Rosner <nor...@go...> wrote: > >>>> Eloy! Thanks for your fast answer. 'awake' is printed one time > >>>> in the > >>>> console. > >>>> All Outlets in IB have a Destination... > >>>> > >>>> What now ? :) > >>>> > >>>> > >>>> Thanks > >>>> On 26.10.2007, at 14:06, Eloy Duran wrote: > >>>> > >>>>> Hi Norman, > >>>>> > >>>>> First of all, welcome to RC! :) > >>>>> > >>>>> Might seem a stupid question (I also don't know if you are knew to > >>>>> IB etc), > >>>>> but just to double check; did you actually hook up the outlets to > >>>>> the controls? > >>>>> > >>>>> If so, could you do something like: > >>>>> > >>>>> def awakeFromNib > >>>>> puts 'awake!' > >>>>> end > >>>>> > >>>>> And see how many times that is printed to the console? > >>>>> > >>>>> Eloy > >>>>> > >>>>> On 10/26/07, Norman Rosner <nor...@go...> wrote: > >>>>>> Hi there, > >>>>>> > >>>>>> im new to rubycocoa so i have a little Problem: > >>>>>> > >>>>>> I created a nibFile through IB with outlets and actions and > >>>>>> instantiated my Controller Class. Almost everything works fine > >>>>>> except > >>>>>> 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 > >>>>>> compile the app the following error occurs: > >>>>>> > >>>>>>> 2007-10-26 13:36:55.385 gui[9929] GUIControl#awakeFromNib: > >>>>>>> NoMethodError: undefined method `setTitle' for nil:NilClass > >>>>>> > >>>>>> What am I doing wrong? It seems to me that something went > >>>>>> wrong on > >>>>>> the way from IB to my GUIControl.rb but im not quite shure > >>>>>> what it > >>>>>> was? > >>>>>> > >>>>>> > >>>>>> Thanks in advance > >>>>>> > >>>>>> regards, > >>>>>> > >>>>>> norman > >>>>>> ----------------------------------------------------------------- > >>>>>> -- > >>>>>> -- > >>>>>> ---- > >>>>>> This SF.net email is sponsored by: Splunk Inc. > >>>>>> Still grepping through log files to find problems? Stop. > >>>>>> Now Search log events and configuration files using AJAX and a > >>>>>> browser. > >>>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >>>>>> _______________________________________________ > >>>>>> Rubycocoa-talk mailing list > >>>>>> Rub...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >>>>>> > >>>>> > >>>>> ------------------------------------------------------------------ > >>>>> -- > >>>>> -- > >>>>> --- > >>>>> This SF.net email is sponsored by: Splunk Inc. > >>>>> Still grepping through log files to find problems? Stop. > >>>>> Now Search log events and configuration files using AJAX and a > >>>>> browser. > >>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >>>>> _______________________________________________ > >>>>> Rubycocoa-talk mailing list > >>>>> Rub...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >>>> > >>>> > >>>> ------------------------------------------------------------------- > >>>> -- > >>>> ---- > >>>> This SF.net email is sponsored by: Splunk Inc. > >>>> Still grepping through log files to find problems? Stop. > >>>> Now Search log events and configuration files using AJAX and a > >>>> browser. > >>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >>>> _______________________________________________ > >>>> Rubycocoa-talk mailing list > >>>> Rub...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >>>> > >>> > >>> -------------------------------------------------------------------- > >>> -- > >>> --- > >>> This SF.net email is sponsored by: Splunk Inc. > >>> Still grepping through log files to find problems? Stop. > >>> Now Search log events and configuration files using AJAX and a > >>> browser. > >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >>> _______________________________________________ > >>> Rubycocoa-talk mailing list > >>> Rub...@li... > >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >> > >> > >> --------------------------------------------------------------------- > >> ---- > >> This SF.net email is sponsored by: Splunk Inc. > >> Still grepping through log files to find problems? Stop. > >> Now Search log events and configuration files using AJAX and a > >> browser. > >> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >> _______________________________________________ > >> Rubycocoa-talk mailing list > >> Rub...@li... > >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > >> > > > > ---------------------------------------------------------------------- > > --- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |