Re: Anyone design a 'Proxy' array?
Re: Anyone design a 'Proxy' array?
- Subject: Re: Anyone design a 'Proxy' array?
- From: warren marco <email@hidden>
- Date: Mon, 1 Apr 2002 17:53:34 -0700
On Monday, April 1, 2002, at 05:48 PM, Andrew Pinski wrote:
>
Do you want the selectors `makeObjectsPerformSelector:' or
>
`makeObjectsPerformSelector:withObject:' of NSArray?
>
You do not even need a NSProxy.
>
>
Thanks,
>
Andrew Pinski
>
PS this is documented at:
>
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/ObjC_classic/
>
Classes/NSArray.html
>
>
On Monday, April 1, 2002, at 07: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??
>
> 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?). Has anyone done this before? I' m not
>
> very knowledgeable in Obj-C reflection. Does anyone have any design
>
> ideas or code they can share?
>
>
>
>
>
>
>
> cheers,
>
> warren marco
>
>
haha! oops! did not see those , thats pretty much what I wanted,
>
thanks Andrew! I was originally looking for something like this
[someArray pop];
where all the array's objects would receive the message pop but
makeObjectsPerformSelector is good enough.
thanks again,
cheers,
warren marco
_______________________________________________
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.