I'd like to separate my ui Swing/JOGL from the content, so my code is relatively unaware of the UI around it. For example, I create a global context that holds on my content. I then make a UI that when the user does some interaction like a mouse click or drag, the UI creates a new context. My OO instincts would be to create a context and pass it to all my UI objects that receive events and mutate them, but if I'm dealing with an immutable class if I pass it to each UI object, when one UI object makes a new context, it isn't reflected in the other UIs. Basically I want all UIs pointing to the same context and each UI being able to create a new context that each UI points to. It seems that when one UI updates the global context reference with a 'def', the others are still using the old one.
-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.