• 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
CallBack method design
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CallBack method design


  • Subject: CallBack method design
  • From: Normand Perron <email@hidden>
  • Date: Fri, 3 May 2002 12:34:13 -0400

I am developing what will eventually become a custom framework. I need to implement a system of callbacks. What would be the easiest or preferred way of doing this?

I can think of a couple ways of doing this:

 having a - (void)setContentHandler:(id)handlerObject method:(SEL)handlerSEL method and then having the framework send the appropriate message.

 forcing the user to subclass my framework's contentHandler method, which would be an empty shell in the framework itself.

I assume that both ways would relatively painless to implement in the framework. What are the considerations which would favour one above the other?

Normand
_______________________________________________
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: CallBack method design
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: How to know if a file is invisible
  • Next by Date: Re: Cocoa programming book(s)
  • Previous by thread: Re: from bytecodes to native
  • Next by thread: Re: CallBack method design
  • Index(es):
    • Date
    • Thread