• 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
Problem overriding NSMutableArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem overriding NSMutableArray?


  • Subject: Problem overriding NSMutableArray?
  • From: Michael Rogers <email@hidden>
  • Date: Wed, 30 May 2001 16:27:59 -0500

I have a class called PhotoAlbum that subclasses NSMutableArray, but when I call either
[self objectAtIndex:0];
or, just for completeness,
[super objectAtIndex:0];

within a method of NSMutableArray, I get this message:

May 30 16:01:49 PhotoAlbum[880] An uncaught exception was raised
May 30 16:01:49 PhotoAlbum[880] *** -objectAtIndex: only defined for abstract class. Define -[PhotoAlbumArray objectAtIndex:]!
May 30 16:01:49 PhotoAlbum[880] *** Uncaught exception: <NSInvalidArgumentException> *** -objectAtIndex: only defined for abstract class. Define -[PhotoAlbumArray objectAtIndex:]!

I find this somewhat confusing, because NSMutableArray isn't abstract.


  • Follow-Ups:
    • Re: Problem overriding NSMutableArray?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: password
  • Next by Date: Problem overriding NSMutableArray?
  • Previous by thread: Re: password
  • Next by thread: Re: Problem overriding NSMutableArray?
  • Index(es):
    • Date
    • Thread