[ANN] FDWeakReferencingObject and FDObjectiveMethod
[ANN] FDWeakReferencingObject and FDObjectiveMethod
- Subject: [ANN] FDWeakReferencingObject and FDObjectiveMethod
- From: Rob Rix <email@hidden>
- Date: Tue, 3 Jul 2001 14:36:03 -0400
As a consumer of such classes, I would certainly like to see announcements
on this list. Preface the subject line with [ANN] to attract attention.
In that case...
I've got two utility classes out.
FDWeakReferencingObject is a simple class which allows for weak
referencing in your application after you make a single simple function
call (setupWeakReferencing()); it poses as NSObject, and implements the
-weakRetain, -weakRelease, and -weakReferenceCount methods, as well as
expanding the functionality of some of NSObject's other methods.
FDObjectiveMethod is a slightly less simple class for treating a method as
an object. You initialize it with a complete invocation (any incomplete
invocations will not currently result in errors, because I haven't got to
that point yet), and then you can execute it. You can also stopExecution,
and as it happens, the invocation is run in another thread. This makes for
some rather easy multithreading, except for some difficulties with two-way
communication (it's better for just running a slave job in a new thread,
currently, but I'm working on that).
You can find both of these on Softrak, but you probably won't want to, as
those are both 1.0 versions, and I doubt either of them work (immediately
after uploading them onto my iDisk and registering them on Softrak, I
found--and fixed--numerous oddities). I suggest that if you want them, you
drop me a line, and I'll send you the newest version of whichever you like.
Alternatively, if there aren't any objections, I could just post the .h
and .m files to this list (hey, they're just text...not that big...).
They are distributed under the BSD license.
Best to you all,
-- Rob
TINRA - There Is No Right Answer