• 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: why do this not work??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why do this not work??


  • Subject: Re: why do this not work??
  • From: lbland <email@hidden>
  • Date: Wed, 17 Dec 2003 18:12:07 -0500

On Wednesday, December 17, 2003, at 05:42 PM, Sascha Kuehn wrote:

NSMutableArray *newList;

hi-

Well, for one thing it will be slow as molasses because you don't take invariants out of your loop. And there is a special method for comparing strings which is faster.

But, one of the real problems is that you have not assigned newList.

assign like this:

newList = [[NSMutableArray alloc] initWithCapacity:64U];

of course, the real problem is that no one can tell you why it doesn't work, because no one (as in me) can figure out what you are trying to accomplish!

and why create newList when you don't do anything with it after the method exits?

In addition, it is not a script, it is a method.

-lance


Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: why do this not work??
      • From: Sascha Kuehn <email@hidden>
References: 
 >why do this not work?? (From: Sascha Kuehn <email@hidden>)

  • Prev by Date: Can't instantiate
  • Next by Date: typedstream files: how do you read them?
  • Previous by thread: why do this not work??
  • Next by thread: Re: why do this not work??
  • Index(es):
    • Date
    • Thread