• 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: subclassing question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subclassing question


  • Subject: Re: subclassing question
  • From: Koen van der Drift <email@hidden>
  • Date: Sat, 12 Jul 2003 20:52:02 -0400

I think what you want is for each subclass to be registered to receive notifications, that way the messages are being sent to the actual subclass instances. You can push up the notification registration and callback method into your baseclass but do it such a way that it is your subclasses that are registered not your baseclass.

Yes, that worked. I made the individual subclasses observers and handled the notification within each subclass. A little less 'reuse of code' but it works.

thanks,

- Koen.
_______________________________________________
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: subclassing question (From: Shawn Erickson <email@hidden>)

  • Prev by Date: isEqualToString
  • Next by Date: Re: isEqualToString
  • Previous by thread: Re: subclassing question
  • Next by thread: really basic nsarray intialization question
  • Index(es):
    • Date
    • Thread