• 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: Another TableView question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another TableView question...


  • Subject: Re: Another TableView question...
  • From: Dan Stein <email@hidden>
  • Date: Tue, 25 Jan 2005 12:08:02 -0800


On Jan 25, 2005, at 11:21 AM, Martha I. Espinosa wrote:


the file doesn't get created until half way through my application.

Do you mean the SWInstallers.txt file?

If so, you should create the array at the time the file is created.

Also, in which class are you implementing the init method you published?

Another suggestion, in which you could make your array creation more object-oriented is to
create an NSEnumerator for your array of lines


NSEnumerator *en = [ lines objectEnumerator ];

Then you could replace the for loop with a

while ( words = [ en nextObject ]
{
	...

and forget about your i and count variables

_______________________________________________
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


References: 
 >Another TableView question... (From: "Martha I. Espinosa" <email@hidden>)

  • Prev by Date: Re: Simple question: how can I call 'pbxbuild' from the Darwin prompt (where is it?)?
  • Next by Date: Re: Simple question: how can I call 'pbxbuild' from the Darwin prompt (where is it?)?
  • Previous by thread: Another TableView question...
  • Next by thread: Re: Another TableView question...
  • Index(es):
    • Date
    • Thread