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 |