• 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: How to get a pointer to the current class handler callback?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get a pointer to the current class handler callback?


  • Subject: Re: How to get a pointer to the current class handler callback?
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 27 Oct 2002 13:58:27 -0500

On Sunday, October 27, 2002, at 01:41 PM, OS X AIBO wrote:

The default class handler just returns 0.

Of course - that's what it's documented to do. But that's not what I asked.

I maintain a language bridge, and I'm using a class handler callback to check for "foreign" classes and register Objective-C wrappers for them when needed. If my callback is able to do that; i.e. if the named class exists in the "foreign" language's name space, it returns 1.

The problem is that another language bridge may want to do the same. So, instead of simply returning 0 if my handler cannot load and register the needed class, I'd like to check for and call any previously-registered handlers to allow them the chance of doing the same.

To put it another way: Is there any way to allow for multiple class handler functions?

sherm--
_______________________________________________
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: 
 >Re: How to get a pointer to the current class handler callback? (From: OS X AIBO <email@hidden>)

  • Prev by Date: Re: Max arguments for NSTask?
  • Next by Date: Re: Max arguments for NSTask?
  • Previous by thread: Re: How to get a pointer to the current class handler callback?
  • Next by thread: Choosing the web browser
  • Index(es):
    • Date
    • Thread