Issue 972 in moose-technology: MNU GLMTreeMorphNodeModel>>previousLink:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 972 in moose-technology: MNU GLMTreeMorphNodeModel>>previousLink:

moose-technology
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 972 by [hidden email]: MNU  
GLMTreeMorphNodeModel>>previousLink:
http://code.google.com/p/moose-technology/issues/detail?id=972

In Moose48 downloaded 2013-08-24...

FreeTypeCache allInstances explore
> select '1 item' tab
> select 'a FreeTypeCache'
> select 'State' tab > 'fifo' variable
> select 'nnnn items' tab
---> MNU GLMTreeMorphNodeModel>>previousLink:



Attachments:
        GLMTreeMorphNodeModel#previousLink.png  80.6 KB

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 972 in moose-technology: MNU GLMTreeMorphNodeModel>>previousLink:

moose-technology

Comment #1 on issue 972 by [hidden email]: MNU  
GLMTreeMorphNodeModel>>previousLink:
http://code.google.com/p/moose-technology/issues/detail?id=972


Not sure if this is the final solution, but error is avoided by adding  
asOrderedCollection...
GLMTreeMorphModel >> roots: anObjectOrCollection
        roots := anObjectOrCollection isCollection
                ifTrue: [ anObjectOrCollection ">>"asOrderedCollection"<<" collect:  
[:each | self nodeModelFor: each ] ]
                ifFalse: [ OrderedCollection with: (self nodeModelFor:  
anObjectOrCollection) ]

------------------
Otherwise...
* anObjectOrCollection is a FreeTypeCacheLinkedList, whose #collect: &  
#addLast: methods require elements to understand #nextLink and #previousLink
* block-variable :each is a FreeTypeCacheEntry, which does understand these
* the result of [self nodeModelFor: each] is GLMTreeMorphNodeModel, which  
does not


--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 972 in moose-technology: MNU GLMTreeMorphNodeModel>>previousLink:

moose-technology
Updates:
        Status: Fixed
        Labels: Component-Glamour Milestone-4.8

Comment #2 on issue 972 by [hidden email]: MNU  
GLMTreeMorphNodeModel>>previousLink:
http://code.google.com/p/moose-technology/issues/detail?id=972

Thanks. Fixed. Although it is probably less efficient when we have other  
types of collections, it should be fine for now.

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev