|
From: Yvon T. <tho...@fr...> - 2006-02-16 16:29:30
|
Le 16 f=E9vr. 06 =E0 16:58, Jonathan Paisley a =E9crit :
>
> How are these methods implemented, and what types of values are the =20=
> items you are returning? They must be NSObject subclasses, and you =20
> must keep a reference to them somewhere - otherwise they will be =20
> garbage collected and things will go wrong.
NOT AT ALL ;-)
for :
def outlineView_numberOfChildrenOfItem(aTree, bookmark)
i return a fixnum
for :
def outlineView_isItemExpandable(aTree, bookmark)
i return a boolean (ruby) like that :
return bookmark.has_elements?()
or :
return false
for :
def outlineView_child_ofItem(aTree, index, bookmark)
i return a REXML::Element :
return children[index]
for :
=09
def outlineView_objectValueForTableColumn_byItem(aTree, =
tableColumn, =20
bookmark)
i return ruby string :
for example :
return bookmark.attributes["label"] if =20
(tableColumnIdentifier =3D=3D "Label")
return bookmark.attributes["href"] if (tableColumnIdentifier =20=
=3D=3D "Url")
and finally for :
def outlineView_shouldEditTableColumn_item(aTree, tableColumn, =20=
bookmark)
i return a ruby boolean always as :
return false
thaks for your help !
Yvon
>
>> and GDB underlines the line :
>> 0x909bf120 <+0032> lwz r11,0(r2)
>>
>> (seems to be asm which i don't understand...)
>
> Assuming that after these messages you are able to type commands to =20=
> gdb, please type 'bt'<RETURN> and include the results in an email.
Here it is :
(gdb) bt
#0 0x909bf120 in objc_msgSend ()
#1 0x0023a6a4 in ocid_get_rbobj ()
#2 0x00209278 in ocid_to_rbobj ()
#3 0x0020a354 in ocdata_to_rbobj ()
#4 0x0020ba8c in override_mixin_method_list ()
#5 0x0020bf0c in override_mixin_method_list ()
#6 0x0020c2d4 in override_mixin_method_list ()
#7 0x0020afe8 in override_mixin_class_method_list ()
#8 0x928db254 in -[NSObject(NSForwardInvocation) forward::] ()
#9 0x909c40d0 in _objc_msgForward ()
#10 0x9373f3f4 in -[NSTableView _drawContentsAtRow:column:clipRect:] ()
#11 0x937e4ae0 in -[NSOutlineView =20
_drawContentsAtRow:column:clipRect:] ()
#12 0x9373ee78 in -[NSTableView drawRow:clipRect:] ()
#13 0x937e49d8 in -[NSOutlineView drawRow:clipRect:] ()
#14 0x9373ec34 in -[NSTableView drawRowIndexes:clipRect:] ()
#15 0x9373e2bc in -[NSTableView drawRect:] ()
#16 0x936d2e78 in -[NSView _drawRect:clip:] ()
#17 0x936d1c1c in -[NSView =20
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible=20=
RectForView:topView:] ()
#18 0x936d1fc8 in -[NSView =20
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible=20=
RectForView:topView:] ()
#19 0x936d1fc8 in -[NSView =20
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible=20=
RectForView:topView:] ()
#20 0x936d1fc8 in -[NSView =20
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible=20=
RectForView:topView:] ()
#21 0x936d1fc8 in -[NSView =20
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible=20=
RectForView:topView:] ()
#22 0x936f2664 in -[NSThemeFrame =20
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible=20=
RectForView:topView:] ()
#23 0x936cb674 in -[NSView =20
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] ()
#24 0x936c0968 in -[NSView displayIfNeeded] ()
#25 0x936c07d8 in -[NSWindow displayIfNeeded] ()
#26 0x936c0684 in _handleWindowNeedsDisplay ()
#27 0x9075ccd8 in __CFRunLoopDoObservers ()
#28 0x9075cf78 in __CFRunLoopRun ()
#29 0x9075ca18 in CFRunLoopRunSpecific ()
#30 0x9318f1e0 in RunCurrentEventLoopInMode ()
#31 0x9318e7ec in ReceiveNextEventCommon ()
#32 0x9318e6e0 in BlockUntilNextEventMatchingListInMode ()
#33 0x9368d104 in _DPSNextEvent ()
#34 0x9368cdc8 in -[NSApplication =20
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#35 0x93892e6c in -[NSMouseTracker =20
trackWithEvent:inView:withDelegate:] ()
#36 0x93808a00 in -[NSOutlineView mouseDown:] ()
#37 0x936e8eb0 in -[NSWindow sendEvent:] ()
#38 0x93691ef4 in -[NSApplication sendEvent:] ()
#39 0x93689330 in -[NSApplication run] ()
#40 0x93779e68 in NSApplicationMain ()
#41 0x00210f68 in init_NSAlert ()
#42 0x002570ec in rb_frozen_class_p ()
#43 0x00257ad4 in rb_frozen_class_p ()
#44 0x00254d50 in rb_frozen_class_p ()
#45 0x00264140 in rb_load_protect ()
#46 0x00264188 in ruby_exec ()
#47 0x002641d0 in ruby_run ()
#48 0x0020c7a8 in RBApplicationMain ()
#49 0x00002d00 in main (argc=3D1, argv=3D0xbffff948) at main.m:13
#50 0x00002528 in _start (argc=3D1, argv=3D0xbffff948, envp=3D0xbffff950) =
=20
at /SourceCache/Csu/Csu-58/crt.c:272
#51 0x000023d0 in start ()
|