On 8 January 2013 02:53, Igor Stasenko <[email protected]> wrote:

> On 8 January 2013 03:52, Igor Stasenko <[email protected]> wrote:
> > On 8 January 2013 02:22, Frank Church <[email protected]> wrote:
> >>
> >>
> >> On 7 January 2013 23:32, Igor Stasenko <[email protected]> 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.
>
>
 TextMorphForEditView allInstances select: [:morph |
   morph firstOwnerSuchThat: [:owner | (owner class isKindOf:
 SystemWindow) and: [
   owner model isKindOf: Workspace ]  notNil ]

This code generates a syntax error. When I put the brackets where I think
they should be I either get a NonBoolean receiver error or a True
doesNotUndertstand value message/


-- 
Frank Church

=======================
http://devblog.brahmancreations.com

Reply via email to