Re: Anyone design a 'Proxy' array?
Re: Anyone design a 'Proxy' array?
- Subject: Re: Anyone design a 'Proxy' array?
- From: Ondra Cada <email@hidden>
- Date: Tue, 2 Apr 2002 03:05:52 +0200
On Tuesday, April 2, 2002, at 02:32 , warren marco wrote:
Is it possible to create an proxy array, where methods are
transferred to all its objects, without knowing what the objects are??
Easily.
It seems NSProxy's -forwardInvocation: and - methodSignatureForSelector:
are only useful when the messages are directed to one object( or at
least objects of the same type?).
Not really. Why should they, in a dynamic message-based OO system?
Has anyone done this before?
'Course, many of us.
I' m not
very knowledgeable in Obj-C reflection. Does anyone have any design
ideas or code they can share?
I guess Marcel Weiher's MPWFoundation is the best example available (at
least of those I am aware of). Those HOM trampoline objects do exactly
that -- and much, much more. Check his site at www.metaobject.com.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.