[PD] help needed: "conditional" help patches
Christof Ressi
info at christofressi.com
Mon Dec 11 15:29:11 CET 2023
Ok, I have a come up with the following solution: I moved the
multichannel section into a dedicated patch and open it with [;pd open
<name> <dir> 1( when the user clicks a bang button in the main help
patch. It's not perfect, but kind of works for my purposes.
I am still wondering if anyone has run into the same issue and found
other solutions.
Christof
On 05.12.2023 22:00, Christof Ressi wrote:
>
> Hi,
>
> I have a library with /optional /multi-channel support. If you try to
> create the object with the "-m" flag and Pd does not have
> multi-channel support, it would print an error message. This works all
> fine, but there's a tricky problem with the help patches. Of course, I
> want to document the multi-channel feature, but I don't want the help
> patch to print errors when loaded in older Pd versions.
>
> The only solution I see at the moment is to have two version of the
> help patch and then register the appropriate version in the setup
> function with "class_sethelpsymbol". However, this would be a
> maintenance nightmare. Also, the help patches would obviously need to
> have different names, so only one of them would match the name of the
> object.
>
> Has anyone run into a similar situation? Any ideas?
>
> Christof
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20231211/dae8dfe6/attachment.htm>
More information about the Pd-list
mailing list