• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Anyone design a 'Proxy' array?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Anyone design a 'Proxy' array? (From: warren marco <email@hidden>)

  • Prev by Date: Re: NSRange help
  • Next by Date: Why Isn't my initWithFrame method being called?
  • Previous by thread: Re: Anyone design a 'Proxy' array?
  • Next by thread: Why Isn't my initWithFrame method being called?
  • Index(es):
    • Date
    • Thread