Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
- Subject: Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
- From: Marcel Weiher <email@hidden>
- Date: Mon, 7 Jun 2004 18:21:52 +0100
On 7 Jun 2004, at 18:06, Nicko van Someren wrote:
That depends on what you call easy. It's trivial to do if you use a
wrapper class like this (typed in Mail.app):
That's a wrapper class. Not subclassing. Next.
That's a wrapper class for the references, to be used by the subclass
of NSDictionary. It retains the pointer to the original object across
to copying of the wrapper object.
Once you have the wrapper, you don't need a NSDictionary subclass, and
you cannot (easily) do it with a subclass without the wrapper. I have
implemented 2-3 of these wrapper classes myself.
Next!
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
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.