Events are useful when you need more than one delegate or event handler. Here is a simple class that can be used to manage events:
Use the uiSubscribe and uiUnsubscribe to have the Event class automatically run the event handler on the main DispatchQueue (for GUI related stuff). Here is an example of how to use them:
ikaika (ee-KYE-kah): Strong, powerful, sturdy, stalwart; strength, force, energy, might.
Subscribe to:
Post Comments (Atom)
PreferenceKey Quirks
PreferenceKey has a few quirks that have tripped me up. One is the reduce(value:nextValue:) implementation. The other is that a PreferenceKe...

-
While setting up OpenBSD on my PowerBook, I ran across a problem with GNOME. My mouse would work fine but the moment I tried to type somethi...
-
I've been working on a WPF project in Visual Studio 2010 and I came across a problem where Visual Studio would crash when I used the Doc...
-
A reader pointed out that my Label Sphere wasn't working as advertised. I took a look at both our blogs and they both looked fine, the...
No comments:
Post a Comment