You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(3) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1) |
Feb
(11) |
Mar
(9) |
Apr
(1) |
May
(5) |
Jun
(5) |
Jul
(4) |
Aug
(3) |
Sep
(15) |
Oct
(8) |
Nov
(9) |
Dec
(11) |
2004 |
Jan
(5) |
Feb
(2) |
Mar
(1) |
Apr
(3) |
May
(6) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(3) |
2005 |
Jan
(1) |
Feb
(7) |
Mar
(6) |
Apr
(36) |
May
(20) |
Jun
(42) |
Jul
(21) |
Aug
(12) |
Sep
(56) |
Oct
(5) |
Nov
(55) |
Dec
(53) |
2006 |
Jan
(43) |
Feb
(83) |
Mar
(98) |
Apr
(42) |
May
(68) |
Jun
(55) |
Jul
(50) |
Aug
(104) |
Sep
(13) |
Oct
(70) |
Nov
(37) |
Dec
(42) |
2007 |
Jan
(56) |
Feb
(18) |
Mar
(43) |
Apr
(80) |
May
(65) |
Jun
(149) |
Jul
(103) |
Aug
(71) |
Sep
(62) |
Oct
(67) |
Nov
(72) |
Dec
(63) |
2008 |
Jan
(64) |
Feb
(63) |
Mar
(31) |
Apr
(42) |
May
(71) |
Jun
(62) |
Jul
(37) |
Aug
(25) |
Sep
(5) |
Oct
(2) |
Nov
(7) |
Dec
(14) |
2009 |
Jan
(20) |
Feb
(15) |
Mar
(19) |
Apr
(8) |
May
(7) |
Jun
|
Jul
(37) |
Aug
(12) |
Sep
(19) |
Oct
(5) |
Nov
(1) |
Dec
(4) |
2010 |
Jan
(5) |
Feb
(24) |
Mar
(16) |
Apr
(9) |
May
(4) |
Jun
|
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(5) |
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Alistair H. <ali...@gm...> - 2007-10-28 21:29:32
|
That is fantastic Eloy. Thank you very much for that! You've helped my understanding of translating Objective-C immensely. :) On 28/10/2007, Eloy Duran <elo...@gm...> wrote: > > Ok.... :) the others would be: > > def tableView_validateDrop_proposedRow_proposedDropOperation(tv, info, > row, op) > # Add code here to validate the drop > puts 'validate drop' > OSX::NSDragOperationEvery > end > > > def tableView_acceptDrop_row_dropOperation(tv, info, row, op) > # Add code here to accept the drop > puts 'acceptDrop' > true > end > > > Eloy > > > On 28 okt 2007, at 21:23, Alistair Holt wrote: > > Thanks Eloy. > > I've been told that part one of http://www.corbinstreehouse.com/blog/?p=21would translate into: > > > MyPrivateTableViewDataType = "MyPrivateTableViewDataType" > > > def awakeFromNib > myTableView.registerForDraggedTypes([MyPrivateTableViewDataType]) > end > > > ..which would make sense to me. Although I'm still not sure what the fist > line actually does. I also have no idea how to implement the rest of the > code in that example. I'm new to Objective-C and Cocoa and have found it > fairly easy to translate code so far but this has really got me. > > > Cheers > > On 28/10/2007, Eloy Duran <elo...@gm... > wrote: > > > > Hi Alistair, > > > > Is there a specific part that you don't understand about the > > translation? > > Or could you mail some code of what you thought it would be, so we can > > see what it is that you can't figure out? > > > > > > Cheers, > > Eloy > > > > On 28 okt 2007, at 17:22, Alistair Holt wrote: > > > > Hello, > > > > I'm trying to implement a NSTableView with Drag and Drop capabilities in > > RubyCocoa. > > > > > > I have been trying to follow > > http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/Tasks/UsingDragAndDrop.htmland http://www.corbinstreehouse.com/blog/?p=21but I just can not figure out how to translate the Objective-C code into > > RubyCocoa. > > > > > > Can anyone help me out? > > > > Thanks > > > > -- > > Alistair Holt > > ali...@gm... > > ------------------------------------------------------------------------- > > > > 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 > > > > > > > -- > Alistair Holt > ali...@gm... > ------------------------------------------------------------------------- > 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 > > -- Alistair Holt ali...@gm... |
From: Eloy D. <elo...@gm...> - 2007-10-28 20:48:04
|
Ok.... :) the others would be: def tableView_validateDrop_proposedRow_proposedDropOperation(tv, info, row, op) # Add code here to validate the drop puts 'validate drop' OSX::NSDragOperationEvery end def tableView_acceptDrop_row_dropOperation(tv, info, row, op) # Add code here to accept the drop puts 'acceptDrop' true end Eloy On 28 okt 2007, at 21:23, Alistair Holt wrote: > Thanks Eloy. > > I've been told that part one of http://www.corbinstreehouse.com/blog/?p=21 > would translate into: > > MyPrivateTableViewDataType = "MyPrivateTableViewDataType" > > def awakeFromNib > myTableView.registerForDraggedTypes([MyPrivateTableViewDataType]) > end > > ..which would make sense to me. Although I'm still not sure what the > fist line actually does. I also have no idea how to implement the > rest of the code in that example. I'm new to Objective-C and Cocoa > and have found it fairly easy to translate code so far but this has > really got me. > > Cheers > > On 28/10/2007, Eloy Duran <elo...@gm... > wrote: > Hi Alistair, > > > Is there a specific part that you don't understand about the > translation? > Or could you mail some code of what you thought it would be, so we > can see what it is that you can't figure out? > > > Cheers, > Eloy > > On 28 okt 2007, at 17:22, Alistair Holt wrote: > >> Hello, >> >> >> I'm trying to implement a NSTableView with Drag and Drop >> capabilities in RubyCocoa. >> >> >> I have been trying to follow http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/Tasks/UsingDragAndDrop.html >> and http://www.corbinstreehouse.com/blog/?p=21 but I just can not >> figure out how to translate the Objective-C code into RubyCocoa. >> >> >> Can anyone help me out? >> >> Thanks >> >> -- >> Alistair Holt >> ali...@gm... >> ------------------------------------------------------------------------- >> 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 > > > > > -- > Alistair Holt > ali...@gm... > ------------------------------------------------------------------------- > 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: Eloy D. <elo...@gm...> - 2007-10-28 20:42:15
|
Hmm, well myTableView is probably a outlet in IB? If so you are not referencing it. You should do @myTableView ABout the other code the next one would be like: def tableView_writeRowsWithIndexes_toPasteboard(tv, rowIndexes, pboard) data = OSX::NSKeyedArchiver.archivedDataWithRootObject(rowIndexes) pboard.declareTypes_owner [BasicTableViewDragAndDropDataType], self pboard.setData_forType data, BasicTableViewDragAndDropDataType true end Eloy On 28 okt 2007, at 21:23, Alistair Holt wrote: > Thanks Eloy. > > I've been told that part one of http://www.corbinstreehouse.com/blog/?p=21 > would translate into: > > MyPrivateTableViewDataType = "MyPrivateTableViewDataType" > > def awakeFromNib > myTableView.registerForDraggedTypes([MyPrivateTableViewDataType]) > end > > ..which would make sense to me. Although I'm still not sure what the > fist line actually does. I also have no idea how to implement the > rest of the code in that example. I'm new to Objective-C and Cocoa > and have found it fairly easy to translate code so far but this has > really got me. > > Cheers > > On 28/10/2007, Eloy Duran <elo...@gm... > wrote: > Hi Alistair, > > > Is there a specific part that you don't understand about the > translation? > Or could you mail some code of what you thought it would be, so we > can see what it is that you can't figure out? > > > Cheers, > Eloy > > On 28 okt 2007, at 17:22, Alistair Holt wrote: > >> Hello, >> >> >> I'm trying to implement a NSTableView with Drag and Drop >> capabilities in RubyCocoa. >> >> >> I have been trying to follow http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/Tasks/UsingDragAndDrop.html >> and http://www.corbinstreehouse.com/blog/?p=21 but I just can not >> figure out how to translate the Objective-C code into RubyCocoa. >> >> >> Can anyone help me out? >> >> Thanks >> >> -- >> Alistair Holt >> ali...@gm... >> ------------------------------------------------------------------------- >> 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 > > > > > -- > Alistair Holt > ali...@gm... > ------------------------------------------------------------------------- > 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: Alistair H. <ali...@gm...> - 2007-10-28 20:24:03
|
Thanks Eloy. I've been told that part one of http://www.corbinstreehouse.com/blog/?p=21would translate into: MyPrivateTableViewDataType = "MyPrivateTableViewDataType" def awakeFromNib myTableView.registerForDraggedTypes([MyPrivateTableViewDataType]) end ..which would make sense to me. Although I'm still not sure what the fist line actually does. I also have no idea how to implement the rest of the code in that example. I'm new to Objective-C and Cocoa and have found it fairly easy to translate code so far but this has really got me. Cheers On 28/10/2007, Eloy Duran <elo...@gm...> wrote: > > Hi Alistair, > > Is there a specific part that you don't understand about the translation? > Or could you mail some code of what you thought it would be, so we can see > what it is that you can't figure out? > > > Cheers, > Eloy > > On 28 okt 2007, at 17:22, Alistair Holt wrote: > > Hello, > > I'm trying to implement a NSTableView with Drag and Drop capabilities in > RubyCocoa. > > > I have been trying to follow > http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/Tasks/UsingDragAndDrop.htmland http://www.corbinstreehouse.com/blog/?p=21but I just can not figure out how to translate the Objective-C code into > RubyCocoa. > > > Can anyone help me out? > > Thanks > > -- > Alistair Holt > ali...@gm... > ------------------------------------------------------------------------- > 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 > > -- Alistair Holt ali...@gm... |
From: Eloy D. <elo...@gm...> - 2007-10-28 19:08:18
|
Hi Alistair, Is there a specific part that you don't understand about the translation? Or could you mail some code of what you thought it would be, so we can see what it is that you can't figure out? Cheers, Eloy On 28 okt 2007, at 17:22, Alistair Holt wrote: > Hello, > > I'm trying to implement a NSTableView with Drag and Drop > capabilities in RubyCocoa. > > I have been trying to follow http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/Tasks/UsingDragAndDrop.html > and http://www.corbinstreehouse.com/blog/?p=21 but I just can not > figure out how to translate the Objective-C code into RubyCocoa. > > > Can anyone help me out? > > Thanks > > -- > Alistair Holt > ali...@gm... > ------------------------------------------------------------------------- > 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: Alistair H. <ali...@gm...> - 2007-10-28 16:22:26
|
Hello, I'm trying to implement a NSTableView with Drag and Drop capabilities in RubyCocoa. I have been trying to follow http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/Tasks/UsingDragAndDrop.htmland http://www.corbinstreehouse.com/blog/?p=21 but I just can not figure out how to translate the Objective-C code into RubyCocoa. Can anyone help me out? Thanks -- Alistair Holt ali...@gm... |
From: Eloy D. <elo...@gm...> - 2007-10-28 13:19:46
|
Hey Salvatore, Thanks for the pointer. It has been fixed in rev 2097. But please note that some classes are skipped because of changes and this does not yet included all the new frameworks that are now supported by RubyCocoa. Cheers, Eloy On 28 okt 2007, at 04:04, Salvatore ScottoDiLuzio wrote: > The gen_bridge_doc.rb doesnt work on leopard. Leopard has a new layout > for the dev docs > > > ------------------------------------------------------------------------- > 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: Salvatore S. <sal...@gm...> - 2007-10-28 03:11:03
|
The gen_bridge_doc.rb doesnt work on leopard. Leopard has a new layout for the dev docs |
From: Justin P. <enc...@gm...> - 2007-10-27 21:25:24
|
I've gotten a bit further, but it's still not fixed. http://pastie.textmate.org/111565 There is a problem with lockFocus. Looks like an NSInternalInconsistencyException can be a number of things, and I can't extract anything useful from the error message: 2007-10-27 16:19:30.062 ruby[6927:10b] *** Assertion failure in - [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/AppKit.subproj/ NSView.m:4751 2007-10-27 16:19:30.064 ruby[6927:10b] ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: OSX::OCException: NSInternalInconsistencyException - - [WebHTMLView(0x1aa9ba0) lockFocus] failed with window=0x1a97610, windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_wrapper.rb:50:in `ocm_send' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_wrapper.rb:50:in `method_missing' ./darkroom.rb:106:in `capture_and_save' ./darkroom.rb:101:in `webView_didFinishLoadForFrame' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_wrapper.rb:50:in `ocm_send' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_wrapper.rb:50:in `method_missing' ./darkroom.rb:62:in `shoot' ./darkroom.rb:52:in `initialize' ./darkroom.rb:116:in `new' ./darkroom.rb:116 /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_wrapper.rb:51: [BUG] Segmentation fault ruby 1.8.6 (2007-06-07) [universal-darwin9.0] On Oct 27, 2007, at 3:40 PM, Justin Palmer wrote: > I'm investigating it. It looks like initialize is being called > multiple times. Also, applicationDidFinishLaunching never post. > Moving some things around, removing initialize in favor of a custom > init_with_options works, but there are still errors with lockFocus. > > 2007-10-27 15:38:48.256 ruby[4872:10b] *** Assertion failure in - > [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/ > AppKit.subproj/NSView.m:4751 > 2007-10-27 15:38: 48.258 ruby[4872:10b] > ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: > OSX::OCException: NSInternalInconsistencyException - - > [WebHTMLView(0x1a6bf30) lockFocus] failed with window=0x1a5a2e0, > windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50:in `ocm_send' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50:in `method_missing' > darkroom.rb:105:in `capture_and_save' > darkroom.rb:101:in `webView_didFinishLoadForFrame' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50:in `ocm_send' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50:in `method_missing' > darkroom.rb:62:in `shoot' > darkroom.rb:52:in `initialize' > darkroom.rb :115:in `new' > darkroom.rb:115 > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:51: [BUG] Segmentation fault > ruby 1.8.6 (2007-03-13) [i686-darwin8.9.1] > > > This is on Leopard. I haven't rebuilt RubyCocoa since I upgraded to > Leopard though, thats a new set of problems. Once I rebuild I'll > investigate further. > > Cheers, > -Justin > > On 10/27/07, Laurent Sansonetti < lsa...@ap...> wrote: > Hi Rich, > > In my environment darkroom.rb hangs, I can't reproduce the AppKit > assertion failure. It used to work in Leopard in the past, I would > definitely suspect WebKit to have changed in the meantime. > > Laurent > > On Oct 27, 2007, at 4:20 PM, Rich Curtis wrote: > > > Hi List, > > > > Tried running the RubyCocoa darkroom.rb (/Developer/Examples/ > > RubyCocoa/ > > Scripts/darkroom.rb) example today that came with the Leopard Dev > > Tools Examples and it horked: > > > > 2007-10-27 10:18:43.399 ruby[544:10b] *** Assertion failure in - > > [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/ > > AppKit.subproj/ > > NSView.m:4751 > > 2007-10-27 10:18:43.401 ruby[544:10b] > > ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: > > OSX::OCException: NSInternalInconsistencyException - - > > [WebHTMLView(0x9f023e0) lockFocus] failed with window=0x3ebc90, > > windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ > ruby/osx/ > > objc/oc_wrapper.rb:50:in `ocm_send' > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ > ruby/osx/ > > objc/oc_wrapper.rb:50:in `method_missing' > > darkroom.rb:99:in `capture_and_save' > > darkroom.rb:95:in `webView_didFinishLoadForFrame' > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ > ruby/osx/ > > objc/oc_wrapper.rb:50:in `ocm_send' > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ > ruby/osx/ > > objc/oc_wrapper.rb:50:in `method_missing' > > darkroom.rb:62:in `shoot' > > darkroom.rb:52:in `initialize' > > darkroom.rb:109:in `new' > > darkroom.rb:109 > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > > objc/ > > oc_wrapper.rb:51: [BUG] Segmentation fault > > > > Anyone have a clue as to why the shipping RubyCocoa that comes with > > Leopard would have a problem with this script? > > > > Thanks, > > rich > > > > > > > > > ------------------------------------------------------------------------- > > 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 > > > > -- > Justin Palmer > http://alternateidea.com | http://lighthouseapp.com | http://activereload.net > | http://warehouseapp.com |
From: Justin P. <enc...@gm...> - 2007-10-27 20:40:22
|
I'm investigating it. It looks like initialize is being called multiple times. Also, applicationDidFinishLaunching never post. Moving some things around, removing initialize in favor of a custom init_with_options works, but there are still errors with lockFocus. 2007-10-27 15:38:48.256 ruby[4872:10b] *** Assertion failure in -[WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/AppKit.subproj/NSView.m:4751 2007-10-27 15:38:48.258 ruby[4872:10b] ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: OSX::OCException: NSInternalInconsistencyException - -[WebHTMLView(0x1a6bf30) lockFocus] failed with window=0x1a5a2e0, windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing' darkroom.rb:105:in `capture_and_save' darkroom.rb:101:in `webView_didFinishLoadForFrame' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing' darkroom.rb:62:in `shoot' darkroom.rb:52:in `initialize' darkroom.rb:115:in `new' darkroom.rb:115 /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:51: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i686-darwin8.9.1] This is on Leopard. I haven't rebuilt RubyCocoa since I upgraded to Leopard though, thats a new set of problems. Once I rebuild I'll investigate further. Cheers, -Justin On 10/27/07, Laurent Sansonetti <lsa...@ap...> wrote: > > Hi Rich, > > In my environment darkroom.rb hangs, I can't reproduce the AppKit > assertion failure. It used to work in Leopard in the past, I would > definitely suspect WebKit to have changed in the meantime. > > Laurent > > On Oct 27, 2007, at 4:20 PM, Rich Curtis wrote: > > > Hi List, > > > > Tried running the RubyCocoa darkroom.rb (/Developer/Examples/ > > RubyCocoa/ > > Scripts/darkroom.rb) example today that came with the Leopard Dev > > Tools Examples and it horked: > > > > 2007-10-27 10:18:43.399 ruby[544:10b] *** Assertion failure in - > > [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/ > > AppKit.subproj/ > > NSView.m:4751 > > 2007-10-27 10:18:43.401 ruby[544:10b] > > ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: > > OSX::OCException: NSInternalInconsistencyException - - > > [WebHTMLView(0x9f023e0) lockFocus] failed with window=0x3ebc90, > > windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > > objc/oc_wrapper.rb:50:in `ocm_send' > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > > objc/oc_wrapper.rb:50:in `method_missing' > > darkroom.rb:99:in `capture_and_save' > > darkroom.rb:95:in `webView_didFinishLoadForFrame' > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > > objc/oc_wrapper.rb:50:in `ocm_send' > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > > objc/oc_wrapper.rb:50:in `method_missing' > > darkroom.rb:62:in `shoot' > > darkroom.rb:52:in `initialize' > > darkroom.rb:109:in `new' > > darkroom.rb:109 > > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > > objc/ > > oc_wrapper.rb:51: [BUG] Segmentation fault > > > > Anyone have a clue as to why the shipping RubyCocoa that comes with > > Leopard would have a problem with this script? > > > > Thanks, > > rich > > > > > > > > > ------------------------------------------------------------------------- > > 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 > -- Justin Palmer http://alternateidea.com | http://lighthouseapp.com | http://activereload.net | http://warehouseapp.com |
From: Laurent S. <lsa...@ap...> - 2007-10-27 16:24:04
|
Hi Rich, In my environment darkroom.rb hangs, I can't reproduce the AppKit assertion failure. It used to work in Leopard in the past, I would definitely suspect WebKit to have changed in the meantime. Laurent On Oct 27, 2007, at 4:20 PM, Rich Curtis wrote: > Hi List, > > Tried running the RubyCocoa darkroom.rb (/Developer/Examples/ > RubyCocoa/ > Scripts/darkroom.rb) example today that came with the Leopard Dev > Tools Examples and it horked: > > 2007-10-27 10:18:43.399 ruby[544:10b] *** Assertion failure in - > [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/ > AppKit.subproj/ > NSView.m:4751 > 2007-10-27 10:18:43.401 ruby[544:10b] > ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: > OSX::OCException: NSInternalInconsistencyException - - > [WebHTMLView(0x9f023e0) lockFocus] failed with window=0x3ebc90, > windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_wrapper.rb:50:in `ocm_send' > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_wrapper.rb:50:in `method_missing' > darkroom.rb:99:in `capture_and_save' > darkroom.rb:95:in `webView_didFinishLoadForFrame' > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_wrapper.rb:50:in `ocm_send' > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_wrapper.rb:50:in `method_missing' > darkroom.rb:62:in `shoot' > darkroom.rb:52:in `initialize' > darkroom.rb:109:in `new' > darkroom.rb:109 > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/ > oc_wrapper.rb:51: [BUG] Segmentation fault > > Anyone have a clue as to why the shipping RubyCocoa that comes with > Leopard would have a problem with this script? > > Thanks, > rich > > > > ------------------------------------------------------------------------- > 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: Rich C. <gen...@ma...> - 2007-10-27 14:20:54
|
Hi List, Tried running the RubyCocoa darkroom.rb (/Developer/Examples/RubyCocoa/ Scripts/darkroom.rb) example today that came with the Leopard Dev Tools Examples and it horked: 2007-10-27 10:18:43.399 ruby[544:10b] *** Assertion failure in - [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/AppKit.subproj/ NSView.m:4751 2007-10-27 10:18:43.401 ruby[544:10b] ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: OSX::OCException: NSInternalInconsistencyException - - [WebHTMLView(0x9f023e0) lockFocus] failed with window=0x3ebc90, windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ objc/oc_wrapper.rb:50:in `ocm_send' /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ objc/oc_wrapper.rb:50:in `method_missing' darkroom.rb:99:in `capture_and_save' darkroom.rb:95:in `webView_didFinishLoadForFrame' /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ objc/oc_wrapper.rb:50:in `ocm_send' /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ objc/oc_wrapper.rb:50:in `method_missing' darkroom.rb:62:in `shoot' darkroom.rb:52:in `initialize' darkroom.rb:109:in `new' darkroom.rb:109 /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_wrapper.rb:51: [BUG] Segmentation fault Anyone have a clue as to why the shipping RubyCocoa that comes with Leopard would have a problem with this script? Thanks, rich |
From: Eloy D. <elo...@gm...> - 2007-10-26 12:52:03
|
Hmmm. If you have an external disk or something which can be wiped you could try to install osx on there and see if compiling rc goes ok. If so you can either copy over the bridgesupport files that were created in the config phase and use that. Or it might be a good time to do an "Archive & Install" of osx, this gives you a 99% fresh installation but keeps your user etc. Eloy On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: > > That would be a negative on both counts. I sure wish I had a fresh OS > X to install on. :) > > > Eloy Duran wrote: > Hmmm, this is weird... > Are you the guy I spoke in irc a while back? > If so, did you try on a fresh osx? > > Eloy > > On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: > > > Oi, I just downloaded the latest version of REXML, installed it, and > then moved it to the location where the other REXML files were (of course > making a backup). Still same error. I recompiled Ruby after I got this > error as well. I fixed the order in my lib path as well, no dice. > > > Eloy Duran wrote: > Yes it's just a library. Check /usr/local/lib/ruby/1.8 > > Eloy > > On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: > > > Yes, "which ruby" does point to the one that I installed. Is the REXML > just a library? It might be that my library path in my profile is a bit > mixed up compared to my executable path..... > > > > Eloy Duran wrote: > Well autotest works with RubyCocoa, but as longs as you don't have RC > installed > require 'osx/cocoa' will not work. ('osx/cocoa' == RubyCocoa) > > Like Laurent said could you double check your REXML/ruby installation? > I suppose "which ruby" points to the one you installed? > > Eloy > > On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: > > > Actually, I tried it out with the older version because the newest > version did not work (same error as the older version). I tried this with > the SVN version as well with the same results. Here is my version of Ruby: > ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin8.10.1] > > Yes, I'm talking about autotest. It fails saying that it requires > osx/cocoa or some other gem like that. > > > Eloy Duran wrote: > Hi Jeremy, > > > > When I follow the instructions to install from source, I get the > following error: > > Is there a specific reason that you are trying to use an older release? > 0.11.1. > Not that I know of such an error occuring with 0.11.1, but still :) > > Which version of ruby are you using? > > [snip] > > > > I'm especially frustrated because I want to use Zentest, and it seems that > Zentest does not work without RubyCocoa. Any help is appreciated. I had > Safari 3 beta installed, but reverted back to 2 before attempting the > install. I do have the binary install, but since I have a custom version of > Ruby installed and I am now attempting to install from source. > > Do you mean autotest? Or another component of the ZenTest suite? > Because I use autotest all the time with RubyCocoa. (Which others > should try too!) > > Cheers, > Eloy > > ------------------------------------------------------------------------- > 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 > > > > ------------------------------------------------------------------------- > 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: 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 > |
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: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: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: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: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: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 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 09:34:21
|
Well you could also do somewhere: class Object def to_ruby self end end This will make sure that #to_ruby can be called on any object. Eloy On 10/26/07, Javier Solorzano <jav...@ri...> wrote: > Eloy, > > The problem is that when the hash or array holds values that have > been mutated into cocoa variants, the marshal will fail, so I have to > deeply transverse the data structure making sure each and every > number, string array and hash held inside is in fact a ruby object > just before issuing the marshal dump message. Moreover, I can't > just use #to_ruby because ruby objects don't understand that message, > so I end up using to_i, to_f, to_array, .. on each object in the data > structure to replace it with ruby objects when I know beforehand what > type to expect and #class in a switch statement when I don't to > decide what type to transform it into. Jeez, looks more like java and > type coercing and less like Ruby. > > Perhaps I should extend cocoa objects with marshal messages that save > and load ruby classes? > > JS > > Hi Javier, > > This is intended behaviour. Ruby arrays and hashes etc do not have > what it takes to be able to use with bindings etc. Don't worry about > it to much, you can ducktype most of the stuff. > > You can always use #to_hash or #to_a: > Marshal.dump(ns_dict.to_hash) > > Or if you are ducktyping you can use #to_ruby which resolves the ruby > variants of the objects that you have: > > Marshal.dump(obj.to_ruby) > > Cheers, > Eloy > > ------------------------------------------------------------------------- > 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: Javier S. <jav...@ri...> - 2007-10-26 09:02:00
|
Eloy, The problem is that when the hash or array holds values that have been mutated into cocoa variants, the marshal will fail, so I have to deeply transverse the data structure making sure each and every number, string array and hash held inside is in fact a ruby object just before issuing the marshal dump message. Moreover, I can't just use #to_ruby because ruby objects don't understand that message, so I end up using to_i, to_f, to_array, .. on each object in the data structure to replace it with ruby objects when I know beforehand what type to expect and #class in a switch statement when I don't to decide what type to transform it into. Jeez, looks more like java and type coercing and less like Ruby. Perhaps I should extend cocoa objects with marshal messages that save and load ruby classes? JS Hi Javier, This is intended behaviour. Ruby arrays and hashes etc do not have what it takes to be able to use with bindings etc. Don't worry about it to much, you can ducktype most of the stuff. You can always use #to_hash or #to_a: Marshal.dump(ns_dict.to_hash) Or if you are ducktyping you can use #to_ruby which resolves the ruby variants of the objects that you have: Marshal.dump(obj.to_ruby) Cheers, Eloy |
From: Jeremy N. <jn...@gn...> - 2007-10-25 21:12:48
|
That would be a negative on both counts. I sure wish I had a fresh OS X to install on. :) Eloy Duran wrote: > Hmmm, this is weird... > Are you the guy I spoke in irc a while back? > If so, did you try on a fresh osx? > > Eloy > > On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: > >> Oi, I just downloaded the latest version of REXML, installed it, and >> then moved it to the location where the other REXML files were (of course >> making a backup). Still same error. I recompiled Ruby after I got this >> error as well. I fixed the order in my lib path as well, no dice. >> >> >> Eloy Duran wrote: >> Yes it's just a library. Check /usr/local/lib/ruby/1.8 >> >> Eloy >> >> On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: >> >> >> Yes, "which ruby" does point to the one that I installed. Is the REXML >> just a library? It might be that my library path in my profile is a bit >> mixed up compared to my executable path..... >> >> >> >> Eloy Duran wrote: >> Well autotest works with RubyCocoa, but as longs as you don't have RC >> installed >> require 'osx/cocoa' will not work. ('osx/cocoa' == RubyCocoa) >> >> Like Laurent said could you double check your REXML/ruby installation? >> I suppose "which ruby" points to the one you installed? >> >> Eloy >> >> On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: >> >> >> Actually, I tried it out with the older version because the newest >> version did not work (same error as the older version). I tried this with >> the SVN version as well with the same results. Here is my version of Ruby: >> ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin8.10.1] >> >> Yes, I'm talking about autotest. It fails saying that it requires >> osx/cocoa or some other gem like that. >> >> >> Eloy Duran wrote: >> Hi Jeremy, >> >> >> >> When I follow the instructions to install from source, I get the >> following error: >> >> Is there a specific reason that you are trying to use an older release? >> 0.11.1. >> Not that I know of such an error occuring with 0.11.1, but still :) >> >> Which version of ruby are you using? >> >> [snip] >> >> >> >> I'm especially frustrated because I want to use Zentest, and it seems that >> Zentest does not work without RubyCocoa. Any help is appreciated. I had >> Safari 3 beta installed, but reverted back to 2 before attempting the >> install. I do have the binary install, but since I have a custom version of >> Ruby installed and I am now attempting to install from source. >> >> Do you mean autotest? Or another component of the ZenTest suite? >> Because I use autotest all the time with RubyCocoa. (Which others >> should try too!) >> >> Cheers, >> Eloy >> >> ------------------------------------------------------------------------- >> 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 > > |
From: Eloy D. <elo...@gm...> - 2007-10-25 20:33:47
|
Hmmm, this is weird... Are you the guy I spoke in irc a while back? If so, did you try on a fresh osx? Eloy On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: > > Oi, I just downloaded the latest version of REXML, installed it, and > then moved it to the location where the other REXML files were (of course > making a backup). Still same error. I recompiled Ruby after I got this > error as well. I fixed the order in my lib path as well, no dice. > > > Eloy Duran wrote: > Yes it's just a library. Check /usr/local/lib/ruby/1.8 > > Eloy > > On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: > > > Yes, "which ruby" does point to the one that I installed. Is the REXML > just a library? It might be that my library path in my profile is a bit > mixed up compared to my executable path..... > > > > Eloy Duran wrote: > Well autotest works with RubyCocoa, but as longs as you don't have RC > installed > require 'osx/cocoa' will not work. ('osx/cocoa' == RubyCocoa) > > Like Laurent said could you double check your REXML/ruby installation? > I suppose "which ruby" points to the one you installed? > > Eloy > > On 10/25/07, Jeremy Nicoll <jn...@gn...> wrote: > > > Actually, I tried it out with the older version because the newest > version did not work (same error as the older version). I tried this with > the SVN version as well with the same results. Here is my version of Ruby: > ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin8.10.1] > > Yes, I'm talking about autotest. It fails saying that it requires > osx/cocoa or some other gem like that. > > > Eloy Duran wrote: > Hi Jeremy, > > > > When I follow the instructions to install from source, I get the > following error: > > Is there a specific reason that you are trying to use an older release? > 0.11.1. > Not that I know of such an error occuring with 0.11.1, but still :) > > Which version of ruby are you using? > > [snip] > > > > I'm especially frustrated because I want to use Zentest, and it seems that > Zentest does not work without RubyCocoa. Any help is appreciated. I had > Safari 3 beta installed, but reverted back to 2 before attempting the > install. I do have the binary install, but since I have a custom version of > Ruby installed and I am now attempting to install from source. > > Do you mean autotest? Or another component of the ZenTest suite? > Because I use autotest all the time with RubyCocoa. (Which others > should try too!) > > Cheers, > Eloy > > ------------------------------------------------------------------------- > 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 > > |