• 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: Overriding methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding methods


  • Subject: Re: Overriding methods
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sun, 24 Mar 2002 22:48:43 +0100

On Sonntag, Mdrz 24, 2002, at 08:35 , Ondra Cada wrote:


On Sunday, March 24, 2002, at 08:17 , Gerriet M. Denkmann wrote:

So, NSMutableArray is a subclass of NSObject and inherits -init.

Right.

But when I use [ [ NSMutableArray alloc ] init ] I get no error message like:
"Please use initWithCapacity:", and it almost works - but only almost.

It works completely and without any problem at all.
Well it did not work for me, and it worked with initWithCapacity: 0.
But maybe I made some other changes as well when replacing the init-call and the bug was within these other things.
I just tried again with init, and - as you said - it worked without any problems.

Probably I should check things better before complaining.

Gerriet.
_______________________________________________
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.

References: 
 >Re: Overriding methods (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Problems running UNIX Apps in Cocoa GUI
  • Next by Date: Re: CMSDA
  • Previous by thread: Re: Overriding methods
  • Next by thread: Text equivalent to a separator item?
  • Index(es):
    • Date
    • Thread