Setting options for MAMultipleOptionDescription? (in Magritte)

3 messages Options
Embed this post
Permalink
John Chludzinski

Setting options for MAMultipleOptionDescription? (in Magritte)

Reply Threaded More More options
Print post
Permalink
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
John Chludzinski

Re: Setting options for MAMultipleOptionDescription? (in Magritte)

Reply Threaded More More options
Print post
Permalink
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
Lukas Renggli

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

Reply Threaded More More options
Print post
Permalink
> 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