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: Laurent S. <lsa...@ap...> - 2007-08-04 16:30:30
|
Okay, that's because your cell's object value is a NSObject class that doesn't implement copyWithZone. From your first message I see that you got a crash when trying to implement it. Can you try to call: objc_method :copyWithZone, ''@@:^v" inside your Download class? Thanks, Laurent On Aug 4, 2007, at 6:18 PM, Eloy Duran wrote: > Yes, that's true. However the problem is not with the NSCell subclass > (DownloadCell) but with the NSObject subclass (Download) that holds > the values for the cell. > > If I don't implement the copyWithZone method it exits with a method > not found error: > 2007-08-04 18:15:29.644 HellaNZB[3861] *** -[Download copyWithZone:]: > selector not recognized [self = 0x158c2400] > /Users/eloy/Documents/DEVELOPMENT/RubyCocoa/Nzb/hellanzb/build/ > Release/HellaNZB.app/Contents/Resources/rb_main.rb:22:in > `NSApplicationMain': NSInvalidArgumentException - *** -[Download > copyWithZone:]: selector not recognized [self = 0x158c2400] > (OSX::OCException) > from /Users/eloy/Documents/DEVELOPMENT/RubyCocoa/Nzb/hellanzb/build/ > Release/HellaNZB.app/Contents/Resources/rb_main.rb:22 > > As you can see the class of the object that it's being called on is > Download which is a NSObject subclass. > > Otherwise I will create a small app and see if I can replicate the > problem. > > Ciao, > Eloy > > On 8/4/07, Laurent Sansonetti <lsa...@ap...> wrote: >> copyWithZone: is part of the NSCopying protocol, which NSObject >> doesn't implement but NSCell does. >> >> http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html >> >> Laurent >> >> On Aug 4, 2007, at 6:05 PM, Eloy Duran wrote: >> >>> Hey Lrz, >>> >>> That would have been very nice! :) >>> However unfortunately NSObject doesn't implement copyWithZone... >>> >>>>> foo = OSX::NSObject.alloc.init >>> => #<OSX::NSObject:0x2e00e class='NSObject' id=0x159ac60> >>>>> foo.objc_methods.grep(/zone/i) >>> => ["zone"] >>> >>> Eloy >>> >>> On 8/4/07, Laurent Sansonetti <lsa...@ap...> wrote: >>>> Try: >>>> >>>> def copyWithZone(zone) >>>> copy = super_copyWithZone(zone) >>>> # set your attributes to copy >>>> # ex: >>>> # copy.title = self.title >>>> return copy >>>> end >>>> >>>> Laurent >>>> >>>> On Aug 4, 2007, at 5:53 PM, Eloy Duran wrote: >>>> >>>>> Hello, >>>>> >>>>> I'm trying to write my own custom NSCell for a tableview. >>>>> However, the table view tries to call #copyWithZone on my objects, >>>>> which are subclasses of NSObject. So I was trying to create a >>>>> working >>>>> #copyWithZone, but no matter what I do it always crashes >>>>> immediately. >>>>> For instance I have the following, but it doesn't even write to >>>>> the >>>>> console: >>>>> >>>>> def copyWithZone(zone) >>>>> puts 'COPY!' >>>>> copy = Download.allocWithZone(zone).init >>>>> self.instance_variables.each do |iv| >>>>> copy.instance_variable_set iv, self.instance_variable_get(iv) >>>>> end >>>>> return copy >>>>> end >>>>> >>>>> Backtrace: >>>>> >>>>> #0 0x90a594c0 in objc_msgSend () >>>>> #1 0xbfffc21c in ?? () >>>>> #2 0x0002b850 in ocid_to_rbobj () >>>>> #3 0x0002df10 in ocdata_to_rbobj () >>>>> #4 0x0003051a in ovmix_register_ruby_method () >>>>> #5 0x00031a98 in rbobj_call_ruby () >>>>> #6 0x00031075 in ovmix_register_ruby_method () >>>>> #7 0x0002f8b9 in init_ovmix () >>>>> #8 0x927fa468 in -[NSObject(NSForwardInvocation) forward::] () >>>>> #9 0x90a5ccc1 in _objc_msgForward () >>>>> #10 0x932aed02 in -[NSCell _setContents:] () >>>>> #11 0x932aec95 in -[NSCell setObjectValue:] () >>>>> #12 0x9353abaa in -[_NSPlaceholderTextFieldPlugin >>>>> showValue:inObject:] () >>>>> #13 0x93511593 in -[NSValueBinder showValue:inObject:] () >>>>> #14 0x93510938 in -[NSValueBinder >>>>> _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState >>>>> :] >>>>> () >>>>> #15 0x9353a287 in -[NSValueBinder >>>>> updateTableColumnDataCell:forDisplayAtIndex:] () >>>>> #16 0x9353a9ef in -[NSTextValueBinder >>>>> updateTableColumnDataCell:forDisplayAtIndex:] () >>>>> #17 0x9353a1d6 in -[_NSBindingAdaptor >>>>> tableColumn:willDisplayCell:row:] () >>>>> #18 0x93402a9d in -[NSTableView >>>>> _sendDelegateWillDisplayCell:forColumn:row:] () >>>>> #19 0x933ea065 in -[NSTableView >>>>> _drawContentsAtRow:column:clipRect:] >>>>> () >>>>> #20 0x933e902b in -[NSTableView drawRow:clipRect:] () >>>>> #21 0x933e67ce in -[NSTableView drawRowIndexes:clipRect:] () >>>>> #22 0x933e56a4 in -[NSTableView drawRect:] () >>>>> #23 0x933113b1 in -[NSView _drawRect:clip:] () >>>>> #24 0x9331040b in -[NSView >>>>> _recursiveDisplayAllDirtyWithLockFocus:visRect:] () >>>>> #25 0x9330f473 in -[NSView >>>>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>>>> :] >>>>> () >>>>> #26 0x93310041 in -[NSView >>>>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>>>> :] >>>>> () >>>>> #27 0x93310041 in -[NSView >>>>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>>>> :] >>>>> () >>>>> #28 0x93310041 in -[NSView >>>>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>>>> :] >>>>> () >>>>> #29 0x93310041 in -[NSView >>>>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>>>> :] >>>>> () >>>>> #30 0x9330eb78 in -[NSThemeFrame >>>>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>>>> :] >>>>> () >>>>> #31 0x9330e362 in -[NSView >>>>> _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView >>>>> :] >>>>> () >>>>> #32 0x9330dc8e in -[NSView displayIfNeeded] () >>>>> #33 0x9330da32 in -[NSWindow displayIfNeeded] () >>>>> #34 0x9335dd6c in _handleWindowNeedsDisplay () >>>>> #35 0x9082dd6e in __CFRunLoopDoObservers () >>>>> #36 0x9082ce10 in CFRunLoopRunSpecific () >>>>> #37 0x9082cace in CFRunLoopRunInMode () >>>>> #38 0x92dec8d8 in RunCurrentEventLoopInMode () >>>>> #39 0x92debfe2 in ReceiveNextEventCommon () >>>>> #40 0x92debe39 in BlockUntilNextEventMatchingListInMode () >>>>> #41 0x93292465 in _DPSNextEvent () >>>>> #42 0x93292056 in -[NSApplication >>>>> nextEventMatchingMask:untilDate:inMode:dequeue:] () >>>>> #43 0x9328bddb in -[NSApplication run] () >>>>> #44 0x9327fd2f in NSApplicationMain () >>>>> #45 0x0003fc0d in ffi_call_SYSV () >>>>> #46 0x0003fbae in ffi_call () >>>>> #47 0x0003cfa0 in rb_ffi_dispatch () >>>>> #48 0x00035ca0 in find_bs_boxed_by_encoding () >>>>> #49 0x00221e09 in call_cfunc () >>>>> #50 0x002214f2 in rb_call0 () >>>>> #51 0x00222489 in rb_call () >>>>> #52 0x0021c34a in rb_eval () >>>>> #53 0x00217d9c in eval_node () >>>>> #54 0x00218369 in ruby_exec_internal () >>>>> #55 0x002183b3 in ruby_exec () >>>>> #56 0x002183dd in ruby_run () >>>>> #57 0x00033474 in RBApplicationMain () >>>>> #58 0x00002886 in main () >>>>> >>>>> So does somebody know of a good way of implementing this with >>>>> RubyCocoa? >>>>> >>>>> Cheers, >>>>> Eloy >>>>> >>>>> PS: I'm on svn rev 1983 >>>>> >>>>> ------------------------------------------------------------------------- >>>>> 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-08-04 16:18:29
|
Yes, that's true. However the problem is not with the NSCell subclass (DownloadCell) but with the NSObject subclass (Download) that holds the values for the cell. If I don't implement the copyWithZone method it exits with a method not found error: 2007-08-04 18:15:29.644 HellaNZB[3861] *** -[Download copyWithZone:]: selector not recognized [self = 0x158c2400] /Users/eloy/Documents/DEVELOPMENT/RubyCocoa/Nzb/hellanzb/build/Release/HellaNZB.app/Contents/Resources/rb_main.rb:22:in `NSApplicationMain': NSInvalidArgumentException - *** -[Download copyWithZone:]: selector not recognized [self = 0x158c2400] (OSX::OCException) from /Users/eloy/Documents/DEVELOPMENT/RubyCocoa/Nzb/hellanzb/build/Release/HellaNZB.app/Contents/Resources/rb_main.rb:22 As you can see the class of the object that it's being called on is Download which is a NSObject subclass. Otherwise I will create a small app and see if I can replicate the problem. Ciao, Eloy On 8/4/07, Laurent Sansonetti <lsa...@ap...> wrote: > copyWithZone: is part of the NSCopying protocol, which NSObject > doesn't implement but NSCell does. > > http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html > > Laurent > > On Aug 4, 2007, at 6:05 PM, Eloy Duran wrote: > > > Hey Lrz, > > > > That would have been very nice! :) > > However unfortunately NSObject doesn't implement copyWithZone... > > > >>> foo = OSX::NSObject.alloc.init > > => #<OSX::NSObject:0x2e00e class='NSObject' id=0x159ac60> > >>> foo.objc_methods.grep(/zone/i) > > => ["zone"] > > > > Eloy > > > > On 8/4/07, Laurent Sansonetti <lsa...@ap...> wrote: > >> Try: > >> > >> def copyWithZone(zone) > >> copy = super_copyWithZone(zone) > >> # set your attributes to copy > >> # ex: > >> # copy.title = self.title > >> return copy > >> end > >> > >> Laurent > >> > >> On Aug 4, 2007, at 5:53 PM, Eloy Duran wrote: > >> > >>> Hello, > >>> > >>> I'm trying to write my own custom NSCell for a tableview. > >>> However, the table view tries to call #copyWithZone on my objects, > >>> which are subclasses of NSObject. So I was trying to create a > >>> working > >>> #copyWithZone, but no matter what I do it always crashes > >>> immediately. > >>> For instance I have the following, but it doesn't even write to the > >>> console: > >>> > >>> def copyWithZone(zone) > >>> puts 'COPY!' > >>> copy = Download.allocWithZone(zone).init > >>> self.instance_variables.each do |iv| > >>> copy.instance_variable_set iv, self.instance_variable_get(iv) > >>> end > >>> return copy > >>> end > >>> > >>> Backtrace: > >>> > >>> #0 0x90a594c0 in objc_msgSend () > >>> #1 0xbfffc21c in ?? () > >>> #2 0x0002b850 in ocid_to_rbobj () > >>> #3 0x0002df10 in ocdata_to_rbobj () > >>> #4 0x0003051a in ovmix_register_ruby_method () > >>> #5 0x00031a98 in rbobj_call_ruby () > >>> #6 0x00031075 in ovmix_register_ruby_method () > >>> #7 0x0002f8b9 in init_ovmix () > >>> #8 0x927fa468 in -[NSObject(NSForwardInvocation) forward::] () > >>> #9 0x90a5ccc1 in _objc_msgForward () > >>> #10 0x932aed02 in -[NSCell _setContents:] () > >>> #11 0x932aec95 in -[NSCell setObjectValue:] () > >>> #12 0x9353abaa in -[_NSPlaceholderTextFieldPlugin > >>> showValue:inObject:] () > >>> #13 0x93511593 in -[NSValueBinder showValue:inObject:] () > >>> #14 0x93510938 in -[NSValueBinder > >>> _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState > >>> :] > >>> () > >>> #15 0x9353a287 in -[NSValueBinder > >>> updateTableColumnDataCell:forDisplayAtIndex:] () > >>> #16 0x9353a9ef in -[NSTextValueBinder > >>> updateTableColumnDataCell:forDisplayAtIndex:] () > >>> #17 0x9353a1d6 in -[_NSBindingAdaptor > >>> tableColumn:willDisplayCell:row:] () > >>> #18 0x93402a9d in -[NSTableView > >>> _sendDelegateWillDisplayCell:forColumn:row:] () > >>> #19 0x933ea065 in -[NSTableView _drawContentsAtRow:column:clipRect:] > >>> () > >>> #20 0x933e902b in -[NSTableView drawRow:clipRect:] () > >>> #21 0x933e67ce in -[NSTableView drawRowIndexes:clipRect:] () > >>> #22 0x933e56a4 in -[NSTableView drawRect:] () > >>> #23 0x933113b1 in -[NSView _drawRect:clip:] () > >>> #24 0x9331040b in -[NSView > >>> _recursiveDisplayAllDirtyWithLockFocus:visRect:] () > >>> #25 0x9330f473 in -[NSView > >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > >>> :] > >>> () > >>> #26 0x93310041 in -[NSView > >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > >>> :] > >>> () > >>> #27 0x93310041 in -[NSView > >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > >>> :] > >>> () > >>> #28 0x93310041 in -[NSView > >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > >>> :] > >>> () > >>> #29 0x93310041 in -[NSView > >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > >>> :] > >>> () > >>> #30 0x9330eb78 in -[NSThemeFrame > >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > >>> :] > >>> () > >>> #31 0x9330e362 in -[NSView > >>> _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] > >>> () > >>> #32 0x9330dc8e in -[NSView displayIfNeeded] () > >>> #33 0x9330da32 in -[NSWindow displayIfNeeded] () > >>> #34 0x9335dd6c in _handleWindowNeedsDisplay () > >>> #35 0x9082dd6e in __CFRunLoopDoObservers () > >>> #36 0x9082ce10 in CFRunLoopRunSpecific () > >>> #37 0x9082cace in CFRunLoopRunInMode () > >>> #38 0x92dec8d8 in RunCurrentEventLoopInMode () > >>> #39 0x92debfe2 in ReceiveNextEventCommon () > >>> #40 0x92debe39 in BlockUntilNextEventMatchingListInMode () > >>> #41 0x93292465 in _DPSNextEvent () > >>> #42 0x93292056 in -[NSApplication > >>> nextEventMatchingMask:untilDate:inMode:dequeue:] () > >>> #43 0x9328bddb in -[NSApplication run] () > >>> #44 0x9327fd2f in NSApplicationMain () > >>> #45 0x0003fc0d in ffi_call_SYSV () > >>> #46 0x0003fbae in ffi_call () > >>> #47 0x0003cfa0 in rb_ffi_dispatch () > >>> #48 0x00035ca0 in find_bs_boxed_by_encoding () > >>> #49 0x00221e09 in call_cfunc () > >>> #50 0x002214f2 in rb_call0 () > >>> #51 0x00222489 in rb_call () > >>> #52 0x0021c34a in rb_eval () > >>> #53 0x00217d9c in eval_node () > >>> #54 0x00218369 in ruby_exec_internal () > >>> #55 0x002183b3 in ruby_exec () > >>> #56 0x002183dd in ruby_run () > >>> #57 0x00033474 in RBApplicationMain () > >>> #58 0x00002886 in main () > >>> > >>> So does somebody know of a good way of implementing this with > >>> RubyCocoa? > >>> > >>> Cheers, > >>> Eloy > >>> > >>> PS: I'm on svn rev 1983 > >>> > >>> ------------------------------------------------------------------------- > >>> 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: Laurent S. <lsa...@ap...> - 2007-08-04 16:10:16
|
copyWithZone: is part of the NSCopying protocol, which NSObject doesn't implement but NSCell does. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html Laurent On Aug 4, 2007, at 6:05 PM, Eloy Duran wrote: > Hey Lrz, > > That would have been very nice! :) > However unfortunately NSObject doesn't implement copyWithZone... > >>> foo = OSX::NSObject.alloc.init > => #<OSX::NSObject:0x2e00e class='NSObject' id=0x159ac60> >>> foo.objc_methods.grep(/zone/i) > => ["zone"] > > Eloy > > On 8/4/07, Laurent Sansonetti <lsa...@ap...> wrote: >> Try: >> >> def copyWithZone(zone) >> copy = super_copyWithZone(zone) >> # set your attributes to copy >> # ex: >> # copy.title = self.title >> return copy >> end >> >> Laurent >> >> On Aug 4, 2007, at 5:53 PM, Eloy Duran wrote: >> >>> Hello, >>> >>> I'm trying to write my own custom NSCell for a tableview. >>> However, the table view tries to call #copyWithZone on my objects, >>> which are subclasses of NSObject. So I was trying to create a >>> working >>> #copyWithZone, but no matter what I do it always crashes >>> immediately. >>> For instance I have the following, but it doesn't even write to the >>> console: >>> >>> def copyWithZone(zone) >>> puts 'COPY!' >>> copy = Download.allocWithZone(zone).init >>> self.instance_variables.each do |iv| >>> copy.instance_variable_set iv, self.instance_variable_get(iv) >>> end >>> return copy >>> end >>> >>> Backtrace: >>> >>> #0 0x90a594c0 in objc_msgSend () >>> #1 0xbfffc21c in ?? () >>> #2 0x0002b850 in ocid_to_rbobj () >>> #3 0x0002df10 in ocdata_to_rbobj () >>> #4 0x0003051a in ovmix_register_ruby_method () >>> #5 0x00031a98 in rbobj_call_ruby () >>> #6 0x00031075 in ovmix_register_ruby_method () >>> #7 0x0002f8b9 in init_ovmix () >>> #8 0x927fa468 in -[NSObject(NSForwardInvocation) forward::] () >>> #9 0x90a5ccc1 in _objc_msgForward () >>> #10 0x932aed02 in -[NSCell _setContents:] () >>> #11 0x932aec95 in -[NSCell setObjectValue:] () >>> #12 0x9353abaa in -[_NSPlaceholderTextFieldPlugin >>> showValue:inObject:] () >>> #13 0x93511593 in -[NSValueBinder showValue:inObject:] () >>> #14 0x93510938 in -[NSValueBinder >>> _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState >>> :] >>> () >>> #15 0x9353a287 in -[NSValueBinder >>> updateTableColumnDataCell:forDisplayAtIndex:] () >>> #16 0x9353a9ef in -[NSTextValueBinder >>> updateTableColumnDataCell:forDisplayAtIndex:] () >>> #17 0x9353a1d6 in -[_NSBindingAdaptor >>> tableColumn:willDisplayCell:row:] () >>> #18 0x93402a9d in -[NSTableView >>> _sendDelegateWillDisplayCell:forColumn:row:] () >>> #19 0x933ea065 in -[NSTableView _drawContentsAtRow:column:clipRect:] >>> () >>> #20 0x933e902b in -[NSTableView drawRow:clipRect:] () >>> #21 0x933e67ce in -[NSTableView drawRowIndexes:clipRect:] () >>> #22 0x933e56a4 in -[NSTableView drawRect:] () >>> #23 0x933113b1 in -[NSView _drawRect:clip:] () >>> #24 0x9331040b in -[NSView >>> _recursiveDisplayAllDirtyWithLockFocus:visRect:] () >>> #25 0x9330f473 in -[NSView >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>> :] >>> () >>> #26 0x93310041 in -[NSView >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>> :] >>> () >>> #27 0x93310041 in -[NSView >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>> :] >>> () >>> #28 0x93310041 in -[NSView >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>> :] >>> () >>> #29 0x93310041 in -[NSView >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>> :] >>> () >>> #30 0x9330eb78 in -[NSThemeFrame >>> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView >>> :] >>> () >>> #31 0x9330e362 in -[NSView >>> _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] >>> () >>> #32 0x9330dc8e in -[NSView displayIfNeeded] () >>> #33 0x9330da32 in -[NSWindow displayIfNeeded] () >>> #34 0x9335dd6c in _handleWindowNeedsDisplay () >>> #35 0x9082dd6e in __CFRunLoopDoObservers () >>> #36 0x9082ce10 in CFRunLoopRunSpecific () >>> #37 0x9082cace in CFRunLoopRunInMode () >>> #38 0x92dec8d8 in RunCurrentEventLoopInMode () >>> #39 0x92debfe2 in ReceiveNextEventCommon () >>> #40 0x92debe39 in BlockUntilNextEventMatchingListInMode () >>> #41 0x93292465 in _DPSNextEvent () >>> #42 0x93292056 in -[NSApplication >>> nextEventMatchingMask:untilDate:inMode:dequeue:] () >>> #43 0x9328bddb in -[NSApplication run] () >>> #44 0x9327fd2f in NSApplicationMain () >>> #45 0x0003fc0d in ffi_call_SYSV () >>> #46 0x0003fbae in ffi_call () >>> #47 0x0003cfa0 in rb_ffi_dispatch () >>> #48 0x00035ca0 in find_bs_boxed_by_encoding () >>> #49 0x00221e09 in call_cfunc () >>> #50 0x002214f2 in rb_call0 () >>> #51 0x00222489 in rb_call () >>> #52 0x0021c34a in rb_eval () >>> #53 0x00217d9c in eval_node () >>> #54 0x00218369 in ruby_exec_internal () >>> #55 0x002183b3 in ruby_exec () >>> #56 0x002183dd in ruby_run () >>> #57 0x00033474 in RBApplicationMain () >>> #58 0x00002886 in main () >>> >>> So does somebody know of a good way of implementing this with >>> RubyCocoa? >>> >>> Cheers, >>> Eloy >>> >>> PS: I'm on svn rev 1983 >>> >>> ------------------------------------------------------------------------- >>> 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-08-04 16:05:24
|
Hey Lrz, That would have been very nice! :) However unfortunately NSObject doesn't implement copyWithZone... >> foo = OSX::NSObject.alloc.init => #<OSX::NSObject:0x2e00e class='NSObject' id=0x159ac60> >> foo.objc_methods.grep(/zone/i) => ["zone"] Eloy On 8/4/07, Laurent Sansonetti <lsa...@ap...> wrote: > Try: > > def copyWithZone(zone) > copy = super_copyWithZone(zone) > # set your attributes to copy > # ex: > # copy.title = self.title > return copy > end > > Laurent > > On Aug 4, 2007, at 5:53 PM, Eloy Duran wrote: > > > Hello, > > > > I'm trying to write my own custom NSCell for a tableview. > > However, the table view tries to call #copyWithZone on my objects, > > which are subclasses of NSObject. So I was trying to create a working > > #copyWithZone, but no matter what I do it always crashes immediately. > > For instance I have the following, but it doesn't even write to the > > console: > > > > def copyWithZone(zone) > > puts 'COPY!' > > copy = Download.allocWithZone(zone).init > > self.instance_variables.each do |iv| > > copy.instance_variable_set iv, self.instance_variable_get(iv) > > end > > return copy > > end > > > > Backtrace: > > > > #0 0x90a594c0 in objc_msgSend () > > #1 0xbfffc21c in ?? () > > #2 0x0002b850 in ocid_to_rbobj () > > #3 0x0002df10 in ocdata_to_rbobj () > > #4 0x0003051a in ovmix_register_ruby_method () > > #5 0x00031a98 in rbobj_call_ruby () > > #6 0x00031075 in ovmix_register_ruby_method () > > #7 0x0002f8b9 in init_ovmix () > > #8 0x927fa468 in -[NSObject(NSForwardInvocation) forward::] () > > #9 0x90a5ccc1 in _objc_msgForward () > > #10 0x932aed02 in -[NSCell _setContents:] () > > #11 0x932aec95 in -[NSCell setObjectValue:] () > > #12 0x9353abaa in -[_NSPlaceholderTextFieldPlugin > > showValue:inObject:] () > > #13 0x93511593 in -[NSValueBinder showValue:inObject:] () > > #14 0x93510938 in -[NSValueBinder > > _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState > > :] > > () > > #15 0x9353a287 in -[NSValueBinder > > updateTableColumnDataCell:forDisplayAtIndex:] () > > #16 0x9353a9ef in -[NSTextValueBinder > > updateTableColumnDataCell:forDisplayAtIndex:] () > > #17 0x9353a1d6 in -[_NSBindingAdaptor > > tableColumn:willDisplayCell:row:] () > > #18 0x93402a9d in -[NSTableView > > _sendDelegateWillDisplayCell:forColumn:row:] () > > #19 0x933ea065 in -[NSTableView _drawContentsAtRow:column:clipRect:] > > () > > #20 0x933e902b in -[NSTableView drawRow:clipRect:] () > > #21 0x933e67ce in -[NSTableView drawRowIndexes:clipRect:] () > > #22 0x933e56a4 in -[NSTableView drawRect:] () > > #23 0x933113b1 in -[NSView _drawRect:clip:] () > > #24 0x9331040b in -[NSView > > _recursiveDisplayAllDirtyWithLockFocus:visRect:] () > > #25 0x9330f473 in -[NSView > > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > > :] > > () > > #26 0x93310041 in -[NSView > > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > > :] > > () > > #27 0x93310041 in -[NSView > > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > > :] > > () > > #28 0x93310041 in -[NSView > > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > > :] > > () > > #29 0x93310041 in -[NSView > > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > > :] > > () > > #30 0x9330eb78 in -[NSThemeFrame > > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > > :] > > () > > #31 0x9330e362 in -[NSView > > _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] > > () > > #32 0x9330dc8e in -[NSView displayIfNeeded] () > > #33 0x9330da32 in -[NSWindow displayIfNeeded] () > > #34 0x9335dd6c in _handleWindowNeedsDisplay () > > #35 0x9082dd6e in __CFRunLoopDoObservers () > > #36 0x9082ce10 in CFRunLoopRunSpecific () > > #37 0x9082cace in CFRunLoopRunInMode () > > #38 0x92dec8d8 in RunCurrentEventLoopInMode () > > #39 0x92debfe2 in ReceiveNextEventCommon () > > #40 0x92debe39 in BlockUntilNextEventMatchingListInMode () > > #41 0x93292465 in _DPSNextEvent () > > #42 0x93292056 in -[NSApplication > > nextEventMatchingMask:untilDate:inMode:dequeue:] () > > #43 0x9328bddb in -[NSApplication run] () > > #44 0x9327fd2f in NSApplicationMain () > > #45 0x0003fc0d in ffi_call_SYSV () > > #46 0x0003fbae in ffi_call () > > #47 0x0003cfa0 in rb_ffi_dispatch () > > #48 0x00035ca0 in find_bs_boxed_by_encoding () > > #49 0x00221e09 in call_cfunc () > > #50 0x002214f2 in rb_call0 () > > #51 0x00222489 in rb_call () > > #52 0x0021c34a in rb_eval () > > #53 0x00217d9c in eval_node () > > #54 0x00218369 in ruby_exec_internal () > > #55 0x002183b3 in ruby_exec () > > #56 0x002183dd in ruby_run () > > #57 0x00033474 in RBApplicationMain () > > #58 0x00002886 in main () > > > > So does somebody know of a good way of implementing this with > > RubyCocoa? > > > > Cheers, > > Eloy > > > > PS: I'm on svn rev 1983 > > > > ------------------------------------------------------------------------- > > 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: Laurent S. <lsa...@ap...> - 2007-08-04 15:59:24
|
Try: def copyWithZone(zone) copy = super_copyWithZone(zone) # set your attributes to copy # ex: # copy.title = self.title return copy end Laurent On Aug 4, 2007, at 5:53 PM, Eloy Duran wrote: > Hello, > > I'm trying to write my own custom NSCell for a tableview. > However, the table view tries to call #copyWithZone on my objects, > which are subclasses of NSObject. So I was trying to create a working > #copyWithZone, but no matter what I do it always crashes immediately. > For instance I have the following, but it doesn't even write to the > console: > > def copyWithZone(zone) > puts 'COPY!' > copy = Download.allocWithZone(zone).init > self.instance_variables.each do |iv| > copy.instance_variable_set iv, self.instance_variable_get(iv) > end > return copy > end > > Backtrace: > > #0 0x90a594c0 in objc_msgSend () > #1 0xbfffc21c in ?? () > #2 0x0002b850 in ocid_to_rbobj () > #3 0x0002df10 in ocdata_to_rbobj () > #4 0x0003051a in ovmix_register_ruby_method () > #5 0x00031a98 in rbobj_call_ruby () > #6 0x00031075 in ovmix_register_ruby_method () > #7 0x0002f8b9 in init_ovmix () > #8 0x927fa468 in -[NSObject(NSForwardInvocation) forward::] () > #9 0x90a5ccc1 in _objc_msgForward () > #10 0x932aed02 in -[NSCell _setContents:] () > #11 0x932aec95 in -[NSCell setObjectValue:] () > #12 0x9353abaa in -[_NSPlaceholderTextFieldPlugin > showValue:inObject:] () > #13 0x93511593 in -[NSValueBinder showValue:inObject:] () > #14 0x93510938 in -[NSValueBinder > _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState > :] > () > #15 0x9353a287 in -[NSValueBinder > updateTableColumnDataCell:forDisplayAtIndex:] () > #16 0x9353a9ef in -[NSTextValueBinder > updateTableColumnDataCell:forDisplayAtIndex:] () > #17 0x9353a1d6 in -[_NSBindingAdaptor > tableColumn:willDisplayCell:row:] () > #18 0x93402a9d in -[NSTableView > _sendDelegateWillDisplayCell:forColumn:row:] () > #19 0x933ea065 in -[NSTableView _drawContentsAtRow:column:clipRect:] > () > #20 0x933e902b in -[NSTableView drawRow:clipRect:] () > #21 0x933e67ce in -[NSTableView drawRowIndexes:clipRect:] () > #22 0x933e56a4 in -[NSTableView drawRect:] () > #23 0x933113b1 in -[NSView _drawRect:clip:] () > #24 0x9331040b in -[NSView > _recursiveDisplayAllDirtyWithLockFocus:visRect:] () > #25 0x9330f473 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > :] > () > #26 0x93310041 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > :] > () > #27 0x93310041 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > :] > () > #28 0x93310041 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > :] > () > #29 0x93310041 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > :] > () > #30 0x9330eb78 in -[NSThemeFrame > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView > :] > () > #31 0x9330e362 in -[NSView > _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] > () > #32 0x9330dc8e in -[NSView displayIfNeeded] () > #33 0x9330da32 in -[NSWindow displayIfNeeded] () > #34 0x9335dd6c in _handleWindowNeedsDisplay () > #35 0x9082dd6e in __CFRunLoopDoObservers () > #36 0x9082ce10 in CFRunLoopRunSpecific () > #37 0x9082cace in CFRunLoopRunInMode () > #38 0x92dec8d8 in RunCurrentEventLoopInMode () > #39 0x92debfe2 in ReceiveNextEventCommon () > #40 0x92debe39 in BlockUntilNextEventMatchingListInMode () > #41 0x93292465 in _DPSNextEvent () > #42 0x93292056 in -[NSApplication > nextEventMatchingMask:untilDate:inMode:dequeue:] () > #43 0x9328bddb in -[NSApplication run] () > #44 0x9327fd2f in NSApplicationMain () > #45 0x0003fc0d in ffi_call_SYSV () > #46 0x0003fbae in ffi_call () > #47 0x0003cfa0 in rb_ffi_dispatch () > #48 0x00035ca0 in find_bs_boxed_by_encoding () > #49 0x00221e09 in call_cfunc () > #50 0x002214f2 in rb_call0 () > #51 0x00222489 in rb_call () > #52 0x0021c34a in rb_eval () > #53 0x00217d9c in eval_node () > #54 0x00218369 in ruby_exec_internal () > #55 0x002183b3 in ruby_exec () > #56 0x002183dd in ruby_run () > #57 0x00033474 in RBApplicationMain () > #58 0x00002886 in main () > > So does somebody know of a good way of implementing this with > RubyCocoa? > > Cheers, > Eloy > > PS: I'm on svn rev 1983 > > ------------------------------------------------------------------------- > 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-08-04 15:53:36
|
Hello, I'm trying to write my own custom NSCell for a tableview. However, the table view tries to call #copyWithZone on my objects, which are subclasses of NSObject. So I was trying to create a working #copyWithZone, but no matter what I do it always crashes immediately. For instance I have the following, but it doesn't even write to the console: def copyWithZone(zone) puts 'COPY!' copy = Download.allocWithZone(zone).init self.instance_variables.each do |iv| copy.instance_variable_set iv, self.instance_variable_get(iv) end return copy end Backtrace: #0 0x90a594c0 in objc_msgSend () #1 0xbfffc21c in ?? () #2 0x0002b850 in ocid_to_rbobj () #3 0x0002df10 in ocdata_to_rbobj () #4 0x0003051a in ovmix_register_ruby_method () #5 0x00031a98 in rbobj_call_ruby () #6 0x00031075 in ovmix_register_ruby_method () #7 0x0002f8b9 in init_ovmix () #8 0x927fa468 in -[NSObject(NSForwardInvocation) forward::] () #9 0x90a5ccc1 in _objc_msgForward () #10 0x932aed02 in -[NSCell _setContents:] () #11 0x932aec95 in -[NSCell setObjectValue:] () #12 0x9353abaa in -[_NSPlaceholderTextFieldPlugin showValue:inObject:] () #13 0x93511593 in -[NSValueBinder showValue:inObject:] () #14 0x93510938 in -[NSValueBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] () #15 0x9353a287 in -[NSValueBinder updateTableColumnDataCell:forDisplayAtIndex:] () #16 0x9353a9ef in -[NSTextValueBinder updateTableColumnDataCell:forDisplayAtIndex:] () #17 0x9353a1d6 in -[_NSBindingAdaptor tableColumn:willDisplayCell:row:] () #18 0x93402a9d in -[NSTableView _sendDelegateWillDisplayCell:forColumn:row:] () #19 0x933ea065 in -[NSTableView _drawContentsAtRow:column:clipRect:] () #20 0x933e902b in -[NSTableView drawRow:clipRect:] () #21 0x933e67ce in -[NSTableView drawRowIndexes:clipRect:] () #22 0x933e56a4 in -[NSTableView drawRect:] () #23 0x933113b1 in -[NSView _drawRect:clip:] () #24 0x9331040b in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] () #25 0x9330f473 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] () #26 0x93310041 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] () #27 0x93310041 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] () #28 0x93310041 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] () #29 0x93310041 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] () #30 0x9330eb78 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] () #31 0x9330e362 in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] () #32 0x9330dc8e in -[NSView displayIfNeeded] () #33 0x9330da32 in -[NSWindow displayIfNeeded] () #34 0x9335dd6c in _handleWindowNeedsDisplay () #35 0x9082dd6e in __CFRunLoopDoObservers () #36 0x9082ce10 in CFRunLoopRunSpecific () #37 0x9082cace in CFRunLoopRunInMode () #38 0x92dec8d8 in RunCurrentEventLoopInMode () #39 0x92debfe2 in ReceiveNextEventCommon () #40 0x92debe39 in BlockUntilNextEventMatchingListInMode () #41 0x93292465 in _DPSNextEvent () #42 0x93292056 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #43 0x9328bddb in -[NSApplication run] () #44 0x9327fd2f in NSApplicationMain () #45 0x0003fc0d in ffi_call_SYSV () #46 0x0003fbae in ffi_call () #47 0x0003cfa0 in rb_ffi_dispatch () #48 0x00035ca0 in find_bs_boxed_by_encoding () #49 0x00221e09 in call_cfunc () #50 0x002214f2 in rb_call0 () #51 0x00222489 in rb_call () #52 0x0021c34a in rb_eval () #53 0x00217d9c in eval_node () #54 0x00218369 in ruby_exec_internal () #55 0x002183b3 in ruby_exec () #56 0x002183dd in ruby_run () #57 0x00033474 in RBApplicationMain () #58 0x00002886 in main () So does somebody know of a good way of implementing this with RubyCocoa? Cheers, Eloy PS: I'm on svn rev 1983 |
From: Tom C. <tom...@gm...> - 2007-07-31 17:29:57
|
Laurent, Thanks. I'll try your suggestion. (I did not post the errors because I suspected a versioning problem.) -Tom |
From: Laurent S. <lau...@gm...> - 2007-07-31 17:12:24
|
Hi, Try to install a more recent version of RubyCocoa. Latest is 0.11.1p1: http://rubycocoa.sourceforge.net/GettingStarted If you still have errors, please at least include them in your message, as it's not possible to guess. Laurent On 7/31/07, Tom Corbett <tom...@gm...> wrote: > Hi > > Need help installing RubyCocoa on Mac OS X 10.4.7 (Ruby 1.8.2 preinstalled). > > Have the re-release of RubyCocoa 0.4.1 binary package for Tiger(10.4), > but HelloWorld.rb responds with errors. > > - Tom > > ------------------------------------------------------------------------- > 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: Tom C. <tom...@gm...> - 2007-07-31 17:03:47
|
Hi Need help installing RubyCocoa on Mac OS X 10.4.7 (Ruby 1.8.2 preinstalled). Have the re-release of RubyCocoa 0.4.1 binary package for Tiger(10.4), but HelloWorld.rb responds with errors. - Tom |
From: Tim P. <he...@ti...> - 2007-07-24 10:33:47
|
Just bringing this thread back for a moment... I know we were discussing natively compiled gems such as hpricot and libxml-ruby, but then I got to thinking that these are two very different propositions. hpricot just has C extensions that need to be compiled, where as libxml ruby actually needs to find compiled libxml2 libraries on the path in order to work. Would I then be wrong in thinking that it needs those libraries (libxml2, iconv etc) to operate rather than just compile? If so, they would also need to be packaged would they not? As a universal binary also? I found this nice link too... http://www.complex-computer.de/ albumshaper/wiki/index.php/Compiling_on_OSX#Compiling_libxml2 Cheers Tim |
From: Eloy D. <elo...@gm...> - 2007-07-20 14:24:43
|
> > Are you using the 0.11.p1 installer?? > > This one has the fix for 10.4.10. > > Doh! That solved my problem. > > Thanks, > Sean No problem, enjoy it! :) Eloy |
From: Sean M. <smo...@gm...> - 2007-07-20 13:35:23
|
> Are you using the 0.11.p1 installer?? > This one has the fix for 10.4.10. Doh! That solved my problem. Thanks, Sean |
From: Eloy D. <elo...@gm...> - 2007-07-20 13:09:07
|
Hello Sean, Are you using the 0.11.p1 installer?? This one has the fix for 10.4.10. Cheers, Eloy On 7/20/07, Tim Perrett <he...@ti...> wrote: > Are you able to compile RC from source? That should work as its just > like compiling anything else. > > Cheers > > TP > > On 20 Jul 2007, at 14:00, Sean Mountcastle wrote: > > > Is there a workaround to get RubyCocoa to install on Mac OS X 10.4.10? > > The installer thinks it's 10.4.1 and won't let me proceed. This > > problem isn't specific to RubyCocoa as other installers fail as well > > (I can't believe Apple was so short sighted that they believed 5 > > digits was enough to represent the OS version). > > > > Thanks in advance for any assistance, > > Sean > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Tim P. <he...@ti...> - 2007-07-20 13:05:33
|
Are you able to compile RC from source? That should work as its just like compiling anything else. Cheers TP On 20 Jul 2007, at 14:00, Sean Mountcastle wrote: > Is there a workaround to get RubyCocoa to install on Mac OS X 10.4.10? > The installer thinks it's 10.4.1 and won't let me proceed. This > problem isn't specific to RubyCocoa as other installers fail as well > (I can't believe Apple was so short sighted that they believed 5 > digits was enough to represent the OS version). > > Thanks in advance for any assistance, > Sean |
From: Sean M. <smo...@gm...> - 2007-07-20 13:00:25
|
Is there a workaround to get RubyCocoa to install on Mac OS X 10.4.10? The installer thinks it's 10.4.1 and won't let me proceed. This problem isn't specific to RubyCocoa as other installers fail as well (I can't believe Apple was so short sighted that they believed 5 digits was enough to represent the OS version). Thanks in advance for any assistance, Sean |
From: Jon B. <jo...@gm...> - 2007-07-19 19:21:21
|
Saw this one another list: http://www.cocoatraces.com/ The Login Items class was very handy, would be nice to see RubyCocoa version of sources! - Jon |
From: Eloy D. <elo...@gm...> - 2007-07-17 20:42:49
|
Hey Tim, Nice! Thanks for your test. Of course it would also be a god thing to really test it with the included tests.... :) Cheers, Eloy On 7/17/07, Tim Perrett <he...@ti...> wrote: > Hey Eloy > > I gave compiling the UB a go and here were the results... > > timmo:~/Desktop/ruby-1.8.6 tpfgperrett$ file ruby > ruby: Mach-O universal binary with 2 architectures > ruby (for architecture ppc): Mach-O executable ppc > ruby (for architecture i386): Mach-O executable i386 > timmo:~/Desktop/ruby-1.8.6 tpfgperrett$ file .ext/universal-darwin8.0/ > openssl.bundle > .ext/universal-darwin8.0/openssl.bundle: Mach-O universal binary with > 2 architectures > .ext/universal-darwin8.0/openssl.bundle (for architecture ppc): Mach- > O bundle ppc > .ext/universal-darwin8.0/openssl.bundle (for architecture > i386): Mach-O bundle i386 > > Hooray! Looks as though it has worked :) great stuff Eloy, well done! > > So either way, using a bespoke compile, or the rubyosx packages, we > now have UB versions of ruby and gems etc that we could incudle into > applications for a totally self contained RC app. > > I know Laurent said he was going to post onto the wikki, but I know > there are people on this list who are trying to deploy apps in this > manner at the moment and wondered if anyone has has any success > completing the packaging yet? > > Cheers > > Tim > > > On 17 Jul 2007, at 12:43, Eloy Duran wrote: > > > Check the output of: > > $ file ruby > > And also of: > > $ file .ext/universal-darwin8.0/openssl.bundle > > > > They should both give something like: > > openssl.bundle: Mach-O universal binary with 2 architectures > > openssl.bundle (for architecture ppc): Mach-O bundle ppc > > openssl.bundle (for architecture i386): Mach-O bundle i386 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Tim P. <he...@ti...> - 2007-07-17 20:01:31
|
Hey Eloy I gave compiling the UB a go and here were the results... timmo:~/Desktop/ruby-1.8.6 tpfgperrett$ file ruby ruby: Mach-O universal binary with 2 architectures ruby (for architecture ppc): Mach-O executable ppc ruby (for architecture i386): Mach-O executable i386 timmo:~/Desktop/ruby-1.8.6 tpfgperrett$ file .ext/universal-darwin8.0/ openssl.bundle .ext/universal-darwin8.0/openssl.bundle: Mach-O universal binary with 2 architectures .ext/universal-darwin8.0/openssl.bundle (for architecture ppc): Mach- O bundle ppc .ext/universal-darwin8.0/openssl.bundle (for architecture i386): Mach-O bundle i386 Hooray! Looks as though it has worked :) great stuff Eloy, well done! So either way, using a bespoke compile, or the rubyosx packages, we now have UB versions of ruby and gems etc that we could incudle into applications for a totally self contained RC app. I know Laurent said he was going to post onto the wikki, but I know there are people on this list who are trying to deploy apps in this manner at the moment and wondered if anyone has has any success completing the packaging yet? Cheers Tim On 17 Jul 2007, at 12:43, Eloy Duran wrote: > Check the output of: > $ file ruby > And also of: > $ file .ext/universal-darwin8.0/openssl.bundle > > They should both give something like: > openssl.bundle: Mach-O universal binary with 2 architectures > openssl.bundle (for architecture ppc): Mach-O bundle ppc > openssl.bundle (for architecture i386): Mach-O bundle i386 |
From: Eloy D. <elo...@gm...> - 2007-07-17 11:47:24
|
Oh and also please try to build some gems that have C extensions and check if they also build as universal, like: hpricot & libxml Eloy On 7/17/07, Eloy Duran <elo...@gm...> wrote: > Hello all, > > Well it took a bit longer than I'd hoped, but I'm actually too busy > atm to play with these things :) > > Another problem came to my attention when discussing some things with > the guy that made the rubyosx package (thanks Jon for finding that > one). Which is an endian issue. > Anyways, this has also been fixed now after studying Apple's patches > to ruby 1.8.2. > > So please try this from source, because I'm indeed doing this al with macports. > Obviously you might want to also pass a --prefix option to configure. > > Patches: http://superalloy.nl/misc_files/rubycocoa/ruby-1.8.6-thread_hooks-universal-patches.zip > > $ patch -p0 < patch-thread-hooks > $ patch -p0 < patch-universal > $ CFLAGS="-arch ppc -arch i386" LDFLAGS="-arch ppc -arch i386" > ./configure --enable-shared --enable-pthread --without-tk > --disable-dependency-tracking > $ make all > > Check the output of: > $ file ruby > And also of: > $ file .ext/universal-darwin8.0/openssl.bundle > > They should both give something like: > openssl.bundle: Mach-O universal binary with 2 architectures > openssl.bundle (for architecture ppc): Mach-O bundle ppc > openssl.bundle (for architecture i386): Mach-O bundle i386 > > Once Laurent has written how to include ruby in a application bundle, > I think it might be a good option to add a patch-and-compile-ruby > option or something like that to standalonify.... Any ideas on this? > > Cheers, > Eloy > > On 7/17/07, Tim Perrett <he...@ti...> wrote: > > That would be great Laurent :) > > > > Cheers > > > > Tim > > > > > > On 16 Jul 2007, at 16:22, Laurent Sansonetti wrote: > > > > > I will write an article in the Wiki about this, since this is a > > > recurrent question. > > > > > > Cheers, > > > Laurent > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > |
From: Eloy D. <elo...@gm...> - 2007-07-17 11:44:11
|
Hello all, Well it took a bit longer than I'd hoped, but I'm actually too busy atm to play with these things :) Another problem came to my attention when discussing some things with the guy that made the rubyosx package (thanks Jon for finding that one). Which is an endian issue. Anyways, this has also been fixed now after studying Apple's patches to ruby 1.8.2. So please try this from source, because I'm indeed doing this al with macports. Obviously you might want to also pass a --prefix option to configure. Patches: http://superalloy.nl/misc_files/rubycocoa/ruby-1.8.6-thread_hooks-universal-patches.zip $ patch -p0 < patch-thread-hooks $ patch -p0 < patch-universal $ CFLAGS="-arch ppc -arch i386" LDFLAGS="-arch ppc -arch i386" ./configure --enable-shared --enable-pthread --without-tk --disable-dependency-tracking $ make all Check the output of: $ file ruby And also of: $ file .ext/universal-darwin8.0/openssl.bundle They should both give something like: openssl.bundle: Mach-O universal binary with 2 architectures openssl.bundle (for architecture ppc): Mach-O bundle ppc openssl.bundle (for architecture i386): Mach-O bundle i386 Once Laurent has written how to include ruby in a application bundle, I think it might be a good option to add a patch-and-compile-ruby option or something like that to standalonify.... Any ideas on this? Cheers, Eloy On 7/17/07, Tim Perrett <he...@ti...> wrote: > That would be great Laurent :) > > Cheers > > Tim > > > On 16 Jul 2007, at 16:22, Laurent Sansonetti wrote: > > > I will write an article in the Wiki about this, since this is a > > recurrent question. > > > > Cheers, > > Laurent > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Tim P. <he...@ti...> - 2007-07-17 11:13:09
|
That would be great Laurent :) Cheers Tim On 16 Jul 2007, at 16:22, Laurent Sansonetti wrote: > I will write an article in the Wiki about this, since this is a > recurrent question. > > Cheers, > Laurent > |
From: Jon B. <jo...@gm...> - 2007-07-16 15:24:28
|
Ahh much better, thank you! On Jul 16, 2007, at 11:21 AM, Laurent Sansonetti wrote: > Works for me :-) > > I use https://rubycocoa.svn.sourceforge.net/svnroot/rubycocoa/trunk/ > src. > > Recently SF.net changed the svn path, maybe this is why you're getting > an error. > > Laurent > > On Jul 16, 2007, at 5:00 PM, Jon Baer wrote: > >> Hi, for past 2 weeks or so its been a little hard to get to updates >> from trunk ... >> >> [MacBook-Pro:~/WORKAREA/SVN_HOME/rubycocoa]$ svn up >> svn: PROPFIND request failed on '/svnroot/rubycocoa/trunk/src' >> svn: PROPFIND of '/svnroot/rubycocoa/trunk/src': Could not resolve >> hostname `svn.sourceforge.net': No address associated with nodename >> (https://svn.sourceforge.net) >> [MacBook-Pro:~/WORKAREA/SVN_HOME/rubycocoa]$ ping svn.sourceforge.net >> ping: cannot resolve svn.sourceforge.net: Unknown host >> >> Just wondering, anyone else w/ similar issues? >> >> - Jon >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Laurent S. <lsa...@ap...> - 2007-07-16 15:22:33
|
I will write an article in the Wiki about this, since this is a recurrent question. Cheers, Laurent On Jul 16, 2007, at 5:04 PM, Tim Perrett wrote: > Could someone on the dev team be able to tell us how RC knows what > ruby binary to use and where it looks for it? It must have to look at > something in the first instance to know where ruby is located wouldnt > it? Also, with Fujimoto Hisa and Jons post, Jon says he got ruby > 1.8.6 after installing rubyosx package, and Fujimoto got 1.8.2 when > passing the --version flag from a terminal window, this sounds to me > like it is concurrent with looking for ruby on the path; what do > people think? > > I wonder if the sources for Locomotive / Slingshot can shed any light > on things? > > Cheers > > Tim > > > On 16 Jul 2007, at 03:50, Jon Baer wrote: > >> I just downloaded the one-click (http://rubyosx.rubyforge.org/) and >> extract using Pacifist to a /VM directory under my project, how can I >> get it to use that ruby instead of system ruby? > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Laurent S. <lsa...@ap...> - 2007-07-16 15:21:18
|
Works for me :-) I use https://rubycocoa.svn.sourceforge.net/svnroot/rubycocoa/trunk/src. Recently SF.net changed the svn path, maybe this is why you're getting an error. Laurent On Jul 16, 2007, at 5:00 PM, Jon Baer wrote: > Hi, for past 2 weeks or so its been a little hard to get to updates > from trunk ... > > [MacBook-Pro:~/WORKAREA/SVN_HOME/rubycocoa]$ svn up > svn: PROPFIND request failed on '/svnroot/rubycocoa/trunk/src' > svn: PROPFIND of '/svnroot/rubycocoa/trunk/src': Could not resolve > hostname `svn.sourceforge.net': No address associated with nodename > (https://svn.sourceforge.net) > [MacBook-Pro:~/WORKAREA/SVN_HOME/rubycocoa]$ ping svn.sourceforge.net > ping: cannot resolve svn.sourceforge.net: Unknown host > > Just wondering, anyone else w/ similar issues? > > - Jon > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-07-16 15:04:40
|
Could someone on the dev team be able to tell us how RC knows what ruby binary to use and where it looks for it? It must have to look at something in the first instance to know where ruby is located wouldnt it? Also, with Fujimoto Hisa and Jons post, Jon says he got ruby 1.8.6 after installing rubyosx package, and Fujimoto got 1.8.2 when passing the --version flag from a terminal window, this sounds to me like it is concurrent with looking for ruby on the path; what do people think? I wonder if the sources for Locomotive / Slingshot can shed any light on things? Cheers Tim On 16 Jul 2007, at 03:50, Jon Baer wrote: > I just downloaded the one-click (http://rubyosx.rubyforge.org/) and > extract using Pacifist to a /VM directory under my project, how can I > get it to use that ruby instead of system ruby? |