Re: A bug in PB?
Re: A bug in PB?
- Subject: Re: A bug in PB?
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 1 Nov 2001 22:28:44 -0800
On Thursday, November 1, 2001, at 10:04 PM, Isaac Sherman wrote:
Hmm. I think I've come across a bug, but I'm not sure what to think of
it.
I have a class based on NSMutableDictionary with several custom methods,
which an instance variable will not repond to. No matter what I do to
that
method, or any of the others in that class, the ivars will not
respond. I
certainly hope it's something I'm doing. It also ignores
NSMutableDictionary (over-ridden and factory) methods, but doesn't give
me a
warning.
Can anyone think of a plausible reason without seeing the code? I'm
using
PB 1.0 vs 5.7. (I still haven't got the OS X update).
It sounds like you need to read up on "Class Clusters", and how to
implement them.
http://developer.apple.com/techpubs/macosx/Cocoa/ProgrammingTopics/ClassClusters.
pdf
NSMutableDictionary itself doesn't implement very many methods at all,
and when you call [[NSMutableDictionary alloc] init], what you're
probably getting is in fact an NSConcreteMutableDictionary or the like.
-jcr
begin
(If this message looks like it has an attachment, your mail reader is
brain-dead.)
References: | |
| >A bug in PB? (From: Isaac Sherman <email@hidden>) |