Forums > Dev

Some questions conserning pattr object routines for registration and notification

August 30, 2006 | 9:23 pm

Reading up on the pattr sdk I have a few questions concerning some of
the object routines for registration and notification:

The object_register function is declared as:

void *object_register(t_symbol *name_space, t_symbol *s, void *x);

If using this to register an external with a symbol, will it then be
possible to connect to this using e.g. the "send" object, or will it
only work with externals that connect to the namespace?

The next question is concerning object_attach. Is it possible to use
this to connect several clients to the same registered object?

Apart from that I just want to add that the pattr sdk is excellently
written and very illuminating!

Thanks a lot,
Trond


August 30, 2006 | 9:29 pm

Am 30.08.2006 um 23:23 schrieb Trond Lossius:

> Reading up on the pattr sdk I have a few questions concerning some
> of the object routines for registration and notification:
>
> The object_register function is declared as:
>
> void *object_register(t_symbol *name_space, t_symbol *s, void *x);
>
> If using this to register an external with a symbol, will it then
> be possible to connect to this using e.g. the "send" object, or
> will it only work with externals that connect to the namespace?

At this time, registered objects and send/receive are completely
distinct, unrelated mechanisms.

> The next question is concerning object_attach. Is it possible to
> use this to connect several clients to the same registered object?

Yes. You can connect as many clients to a registered object as you want.

> Apart from that I just want to add that the pattr sdk is
> excellently written and very illuminating!

Thanks!

jb


Viewing 2 posts - 1 through 2 (of 2 total)