Possible addition of a connectReplaceByName to sigslot_core

Michael Flanagan <[email protected]>
Newsgroups gmane.comp.windows.devel.netwindows
Message-ID <[email protected]>
I have a situation with sigslot atm where I'm trying to attach sig's to 
a class instance. I dynamically delete and instantiate this class many 
times at runtime (it's actually a nw window widget). I'm having a 
problem where the events fire on the first instance of the window 
widget, but do not occur on the second instance. I believe it 's because 
I never dissconnect them from the first window instance. Because of the 
way I'm listening for funtions and b/c js doesn't have any kind of 
deconstructor (Alex I chatted w/ you about this), I can't disconnect my 
events prior to the window widget being removed from the dom.

What I'd like is a connectReplaceByName that would only allow for a 
single connect the way that connectOnceByName does, but would overwrite 
the existing slot if it already existed. That way I wouldn't have to 
worry about disconnecting by name before doing a connect once by name.

Thoughts?

Michael


_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.