I am an object owning a patcher – allow modify read only

Nov 7, 2010 at 5:42pm

I am an object owning a patcher – allow modify read only

Hello,

I have an object that owns patchers.

I call noedit on the patchers (and their owned patchers. I’m sure at some point in the past that allowed you to use the modify read only command to edit them, but now it doesn’t.

I probed the messlist for a patcher and saw allowedit and allowmod, but neither of these appear to get me anywhere.

How do I set the patcher so it is not editable *unless* the user chooses modify read only (currently grayed out).

I’ve changed the title of the window in case that matters….

Many thanks

Alex

#53147
Aug 2, 2012 at 11:15am

Hello,

I’m working on an object that owns patchers and I found a solution but I don’t know if it’s the best way to do this. I created the patchers with t_dictionnary :

x->f_patcher[i] = (t_patcher *)object_new_typed(CLASS_NOBOX, gensym("jpatcher"), 1, &a);
and now i use :

x->f_patchers[i] = (t_patcher *)newinstance(gensym("patchername"), 0, NULL);
and the problem is solved.

Can you tell me what is the solution to close a patcher without freeing it when you close the patcher window :
http://cycling74.com/forums/topic.php?id=18367
and what is your strategy to use signal in the patchers ?

Thanks

Pierre

#191066

You must be logged in to reply to this topic.