• 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
Using invocation forwarding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using invocation forwarding


  • Subject: Using invocation forwarding
  • From: John Timmer <email@hidden>
  • Date: Tue, 16 Dec 2003 12:17:44 -0500

A while back I found out that subclassing a dictionary is a nightmare,
because dictionaries are actually one of a number of private subclasses.
Categories won't work, since I still need a couple of additional variables.

I was thinking that simply wrapping a dictionary in a class with a
forwardInvocation method would allow me send any messages I don't understand
on to the dictionary, while still having a few variables and a couple of
specialized methods. Are there reasons or situations where this would fail
while a normal dictionary wouldn't? Any advice or warnings?

Thanks,

JT
_______________________________________________
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: Using invocation forwarding
      • From: Jonathan Wight <email@hidden>
  • Prev by Date: selected table row color ala itunes ? [2]
  • Next by Date: Re: Using custom NSValueTransformer objects in single-window applications
  • Previous by thread: Re: Using custom NSValueTransformer objects in single-window applications
  • Next by thread: Re: Using invocation forwarding
  • Index(es):
    • Date
    • Thread