• 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: Method not seeing array as array[solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Method not seeing array as array[solved]


  • Subject: Re: Method not seeing array as array[solved]
  • From: Michael Swan <email@hidden>
  • Date: Thu, 3 Feb 2005 10:13:36 -0500

Many thanks to all who responded to my question. As I am fairly new to this all the different ides were good to help me see different programming thoughts. In the end the biggest factor that was affecting me was:

channelArray = [[NSMutableArray alloc] init];

while this is normally the right way way to do it below worked much better:

channelArray = [[NSMutableArray alloc] initWithCapicity:0];

I also wrote a separate method that adds a single MSChannel instance to the array and call it as many times as I need from -(id)init. It works great and will be more useful down the road.

thanks again,
Mike
"The Ego is the little self that pretends to be the only self and speaks so loudly that the still, small voice of the Greater Self, whose whisperings come from within the Soul, are rarely heard - unless we learn to listen."


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Method not seeing array as array[solved]
      • From: Marco Scheurer <email@hidden>
  • Prev by Date: Re: NSCalendarDate picker widget?
  • Next by Date: Re: Stop dragging my <NSWindow> around
  • Previous by thread: Re: Stop dragging my <NSWindow> around
  • Next by thread: Re: Method not seeing array as array[solved]
  • Index(es):
    • Date
    • Thread