• 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: Protocols on the fly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Protocols on the fly?


  • Subject: Re: Protocols on the fly?
  • From: Lloyd Dupont <email@hidden>
  • Date: Mon, 28 Apr 2003 14:49:48 +1000

/usr/include/objc/Protocol.h

you could always create your custom subclass of Protocol, interesting Objective-C runtime exercise.
beware, Protocol inherit from Object, not NSObject (and so has no retain/release method)


you could always generate
On Monday, April 28, 2003, at 01:59 PM, Owen Anderson wrote:

Hey folks,

I'm working on a framework that involves passing an object supplied by the host application to another computer via Distributed Objects. Now, the object being passed can be of any type, so I don't have a protocol to attach to it when it is received on the other side. I can think of two solutions to this: require the host application to provide a copy of the protocol, or find a way to generate a protocol from the object. So, folks, is this possible? Given an object, can I generate a Protocol* for its methods?

Thanks,
Owen Anderson
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Protocols on the fly?
      • From: Owen Anderson <email@hidden>
References: 
 >Protocols on the fly? (From: Owen Anderson <email@hidden>)

  • Prev by Date: Protocols on the fly?
  • Next by Date: Re: Protocols on the fly?
  • Previous by thread: Protocols on the fly?
  • Next by thread: Re: Protocols on the fly?
  • Index(es):
    • Date
    • Thread