Comment in OB

Alexandre Bergel Alexandre.Bergel at cs.tcd.ie
Tue May 30 10:23:24 UTC 2006


Oups...
I just noticed that OBColumn>>#nodeChanged: exist. and #nodeChanged:  
is also used as event. There is therefore a little mess with the  
events. This new version does not have this problem. I simply used  
#nodeSelected: instead of #nodeChanged:

Cheers,
Alexandre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OBAllMethods.2.cs
Type: application/octet-stream
Size: 1227 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060530/b406d055/OBAllMethods.2.obj
-------------- next part --------------

Am May 30, 2006 um 10:58 AM schrieb Alexandre Bergel:

> Another thing I was missing with OB, is to have the --all-- method  
> category automatically selected when I select a class. I attached  
> a .cs that add this.
>
> Here are the changes I did:
> 	- Instead of sending #nodeChanged, #nodeChanged: theSelectedNode  
> is sent
> 	- OBPanel>>nodeChanged: aNode  ^ self nodeChanged
> 	- OBBrowser>>nodeChanged: aNode ^ self nodeChanged
> 	- OBSystemBrowser>>nodeChanged: aNode
> 	| methodCategoryColumn |
> 	super nodeChanged: aNode.
> 	
> 	(aNode isKindOf: OBClassNode)
> 		ifTrue: [
> 			methodCategoryColumn :=
> 				(panels select: [:p| p isKindOf: OBColumnPanel]) first columns  
> third.
> 			(methodCategoryColumn getChildren first) ifNotNil: [
> 				methodCategoryColumn select: (methodCategoryColumn getChildren  
> first).]]
>
> I am not sure about this last method. Looks like a hack now... But  
> it works fine.
>
> Cheers,
> Alexandre
> <OBAllMethods.1.cs>
>
>
> Am May 29, 2006 um 8:09 PM schrieb Lukas Renggli:
>
>> Hi Colin,
>>
>>> I feel that it is currently not possible in OB to have a second pane
>>> when I select a class. The model needs to be extended I guess. This
>>> might be a very interesting feature. We might want to have a method
>>> OBMetaNode>>wantsSecondPane
>>
>> I would also like to be able to display different views, depending on
>> the current OBDefinition. Right now this is a hack if I want to
>> display something else than a TextMorph.
>>
>> Btw, how are the announcements and the multi-selection going?
>>
>> Cheers,
>> Lukas
>>
>> -- 
>> Lukas Renggli
>> http://www.lukas-renggli.ch
>>
>
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.cs.tcd.ie/Alexandre.Bergel
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





More information about the Squeak-dev mailing list