Setting options for MAMultipleOptionDescription? (in Magritte)

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

Setting options for MAMultipleOptionDescription? (in Magritte)

John Chludzinski
I'm trying to set the options for MAMultipleOptionDescription using an instance variable of its associated model (Lists).  But since the call to set the options for the instance of MAMultipleOptionDescription is in a List (the model's) class method, I can't make access to this instance variable (of List).  I tried having the #selectorAccessor: method return these value, but of course this merely added these to the selected list - NOT the options.  Not what I wanted.  There must be a means to access instance data associated with the model to be displayed in the options for MAMultipleOptionDescription?

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Setting options for MAMultipleOptionDescription? (in Magritte)

John Chludzinski
Seems like there ought to be a #selectorGetOptions: method in MAMultipleOptionDescription to tell it which of its model's methods to call to get its options?

On Mon, Oct 26, 2009 at 4:49 PM, John Chludzinski <[hidden email]> wrote:
I'm trying to set the options for MAMultipleOptionDescription using an instance variable of its associated model (Lists).  But since the call to set the options for the instance of MAMultipleOptionDescription is in a List (the model's) class method, I can't make access to this instance variable (of List).  I tried having the #selectorAccessor: method return these value, but of course this merely added these to the selected list - NOT the options.  Not what I wanted.  There must be a means to access instance data associated with the model to be displayed in the options for MAMultipleOptionDescription?


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Setting options for MAMultipleOptionDescription? (in Magritte)

Lukas Renggli
> Seems like there ought to be a #selectorGetOptions: method
> in MAMultipleOptionDescription to tell it which of its model's methods to
> call to get its options?

That's not supported. Have a look at
<http://www.lukas-renggli.ch/smalltalk/magritte/faq> on how to adapt
descriptions depending on the object. Also check the mailing-list
archive to find other discussions on this topic.

Cheers,
Lukas


>
> On Mon, Oct 26, 2009 at 4:49 PM, John Chludzinski
> <[hidden email]> wrote:
>>
>> I'm trying to set the options for MAMultipleOptionDescription using an
>> instance variable of its associated model (Lists).  But since the call to
>> set the options for the instance of MAMultipleOptionDescription is in a List
>> (the model's) class method, I can't make access to this instance variable
>> (of List).  I tried having the #selectorAccessor: method return these value,
>> but of course this merely added these to the selected list - NOT the
>> options.  Not what I wanted.  There must be a means to access instance data
>> associated with the model to be displayed in the options for
>> MAMultipleOptionDescription?
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside