Re: exception in class derived from NSMutableDictionary
Re: exception in class derived from NSMutableDictionary
- Subject: Re: exception in class derived from NSMutableDictionary
- From: Dylan Adams <email@hidden>
- Date: Wed, 30 Jul 2003 11:35:28 -0500
Robert G Palmer Jr wrote:
I have a class that I have derived from NSMutableDictionary - solely for
the purpose of being able to add items using a custom method. If I
execute either of the first two pieces of code, they work fine. If I
execute the third, I get an exception on the count method with the
following message:
This would be easier to do with a category. NSDictionary is part of a
``class cluster:''
http://developer.apple.com/documentation/Cocoa/Conceptual/Foundation/Concepts/ClassClusters.html
http://www.cocoadev.com/index.pl?ClassClusters
Subclassing a class that is part of a cluster is non-trivial.
dylan
_______________________________________________
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.