[maxmsp] Re: jsui + pattr = strangeness...
Mattijs Kneppers
mattijs at smadsteck.nl
Fri Jun 1 02:43:37 MDT 2007
- Previous message: [maxmsp] Re: Re: Re: Bug report: cursor doesn't change over panel lower right corner
- Next message: [maxmsp] Re: jsui + pattr = strangeness...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is not the way pattr works. You can't use pattr to send any message to an object, only set its value. Not all objects support binding. This jsui doesn't, but it will if you define a set/getvalueof() method. That way you could set the label text with pattr. In this case, I too would expect an error message when binding the pattr to the jsui (because the jsui doesn't support pattr bindings). Mattijs Quote: Anthony Palomba wrote on Fri, 01 June 2007 01:52 ---------------------------------------------------- > I have a simple patcher example that binds a jsui label to > a pattr and then tries to set its text. I see no bind error messages. > But for some reason it will not do it. Can someone explain what > might be the problem... > > > > Thanks, > Anthony > > > #P window setfont "Sans Serif" 9.; > #P window linecount 1; > #N vpatcher 531 409 1131 809; > #P window setfont "Sans Serif" 9.; > #P message 197 64 40 9109513 text bar; > #P newex 197 88 125 9109513 pattr @bindto parent::lblTitle; > #P objectname u478000001; > #P connect 1 0 0 0; > #P pop 1; > #P newobj 231 107 66 9109513 p inside_here; > #P objectname inside_here; > #P user jsui 87 56 358 27 1 0 0 jsui_roundedlabel.js foo; > #P objectname lblTitle; > #P window clipboard copycount 2; > > > > ---------------------------------------------------- -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling
- Previous message: [maxmsp] Re: Re: Re: Bug report: cursor doesn't change over panel lower right corner
- Next message: [maxmsp] Re: jsui + pattr = strangeness...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
