Feature Request #818

jcom.send and jcom.receive – relative path in view

Added by Tom Mays almost 6 years ago. Updated over 5 years ago.

Status:ClosedStart date:2011-07-13
Priority:NormalDue date:
Assignee:Théo de la Hogue% Done:

0%

Category:-Spent time:-
Target version:MVC for 0.6
Branch:

Description

It seems to me that jcom.send and jcom.receive should accept relative names within a view, as they do in a model.

History

#1 Updated by Pascal Baltazar almost 6 years ago

  • Status changed from New to Resolved

it works since Théo's commit 946476d1b65ad4ba2c8c058d1c2b82ee0b9f6402 (jul 22nd)

but the collateral damage is that, if you have a parameter in your view patch (a parameter specific to the view, not the model it binds to...), this parameter cannot be accessed any more by a relative address,
and then it cannot be accessed by a jcom.view, as it is possible in any other model (knowing that a view is also a model)
(see examples below)

I don't know if the bargain of losing this feature would be worth or not, though...
I would say that the most common (and intuitive) usage would be to keep things as they are now.... but mileages may vary, as always...
and maybe this is confusing also... I don't know...

one more thing : this is not an "abstract" problem, as I'm using parameters in several of my view patchers (usually to decide which model or submodel I will bind to...)

opinions ?

Examples :

what works with @context model (a.k.a. no @context attribute)
----------begin_max5_patcher----------
496.3ocyU00aCBBE8Y8WAgm6LHZ8i819crzzfJakEEZT5Z2Z5+8An3bKpwr0
0rGTgKWudNGNW7rqCLSbh1.A2CdD33b10wwDRGvoatCrhbJujzXRCxOTkQqg
qZWhUXBJxd4tParmDbImTQMq7PMiTZWQ8tLdIUZpj+fzaXuaRO0C8YphCRat
3tnsgjusm1BYHiKgq.vLB+YHXSWV6Ix7cL9yaqo4x1DwqQpRC7C80O5lD6g.
azuxEWW8sUKUBnGUD1RJI8j4i.eIWT48JidDHoMxQTnfqfB4ilPhBmRhz5S+
0bZT.BOPiv3HyrjepHMkOA+u1mjrVy533+XaxdRsh4RZ8TdEL9uzrfm0rr.A
Zcz0viz94GqSIdVN9UxflwRmNzQu1dumfpshJJuceA9CHfAZVnti0UIyftfD
NWHIRlfaVZvzQXcxnrd7sP+I2BmsGOQqAIoKPOri+0N+WI0892sZ2+VtnfNd
ewtCYvdrTJpaQMxKxOMBkrBX5HQdAQn3jP8nXjZE+dBLTMSuFcP3qdGTmmzO
dn0D8sNHSAfkL92+4rof53eU9aDGpysPvd9A3yM1B0oLLduO7w9ihGjyNVQA
kOzwUwJ1KTl4NLLQO9RgT3BPTvMEQAK.Qg2VDkrDQJ81hozkfo3eAlTSt39A
uCTaQB
-----------end_max5_patcher-----------

doesn't work with @context view
----------begin_max5_patcher----------
526.3ocuUssarBBE8Y8qfvySm.LNdoO09czbxDTocnQAixzNmSS+2O.pTmF0
ZZsyChvlK60dwZu4MeOXp7LqABtE7.vy6MeOOqIiAutwdvR54rBZicYPwoxT
VMbS6T7bqQY5y2Dza6QoPInkL6L2WyoE8yn2KWTvT1SBOX4M7+YWdxVTm0pZ
VCSnnJtTbnlkoZwHY2d8R.XRn4GpqA7mObf7jp2CjNqslT+sh0dHPtPA2.fo
TwSP2dqnpribwSS5s8V2giL9yrk288MMaVJwwdUSS8Tghc15D3yYxxsuvYuB
TrF0H75tUfWwHGwdIEELEEY3G22rbTbz.Nhz9CG+cIooTWjUUcs15jHqzHj7
KKSpn05HWwpmRqPH+lhExrhkEPPA30Piz59wxThlMFuLXPyf1fgJ588st.Te
UTpqMY8K7aD.Vn0C0i7tSx1oyHUHjs09rSMX3HQc7nQ83Wg3IuBmuNngChBV
.ez2+Gq7egV6zuGLp+CBYNa77himRA2kokvZq.SsTnCYEx51X.sMDmDhhcuZ
rKDEEGX5EgzyfcgyPtMYMxmHqe9TqBEYK3f6RqPeJexd.vBt3yOvaOPi8KuL
Zjmpy5gP2KOfOtky0kb3Bmn7A2q9CVyQddNSLT9UxyqjZkcGDlHgeoHJXAHZ
2UEQlJteIjHWUHYJH70rTx0ESIKASQ+.LoG7t++AAL3eaC
-----------end_max5_patcher-----------

#2 Updated by Théo de la Hogue over 5 years ago

  • Status changed from Resolved to Closed

I closed this feture request but pascal raise another problem so I open another one (copying his post)

Also available in: Atom PDF