• 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: A bug in PB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.)


  • Follow-Ups:
    • Authorization.h
      • From: "Josh M. Hurd" <email@hidden>
References: 
 >A bug in PB? (From: Isaac Sherman <email@hidden>)

  • Prev by Date: Re: Deleting an Outlet (member variable) and Database Access
  • Next by Date: Authorization.h
  • Previous by thread: A bug in PB?
  • Next by thread: Authorization.h
  • Index(es):
    • Date
    • Thread