On 8 January 2013 02:53, Igor Stasenko <siguctua@gmail.com> wrote:
On 8 January 2013 03:52, Igor Stasenko <siguctua@gmail.com> wrote:
On 8 January 2013 02:22, Frank Church <vfclists@gmail.com> wrote:
On 7 January 2013 23:32, Igor Stasenko <siguctua@gmail.com> wrote:
Workspace allInstances collect: [:ea | ea contents
Following your example I used this expression 'TextMorphForEditView allInstances collect: [ :ea | ea text]'.to get the text in all the TextMorphForEditView instances without have to Cmd-S them first..
In my case I need to know if the TextMorphForEditView belongs to a Workspace. Is there a message for checking if an object is a child
object of
a particular class further up the hierarchy,.something along the lines of:
isTrue(TextMorphForEditViewObject childOf: Workspace)
and conversely
isTrue(WorkspaceObject parentOf: TextMorphForEditView)
TextMorphForEditView allInstances select: [:morph | morph firstOwnerSuchThat: [:owner | (owner class isKindOf: SystemWindow) and: [ owner model isKindOf: Workspace ] ]
something like that.
or this: ... TextMorphForEditView allInstances select: [:morph | morph firstOwnerSuchThat: [:owner | (owner class isKindOf: SystemWindow) and: [ owner model isKindOf: Workspace ] notNil ]
? -- Frank Church
======================= http://devblog.brahmancreations.com
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
Do you care to rack some points at Stackoverflow 14203861, less I end up having to answer my own question (rather uncool) ? -- Frank Church ======================= http://devblog.brahmancreations.com