• 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: How do I extent the enumerator for a growing array??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I extent the enumerator for a growing array??


  • Subject: Re: How do I extent the enumerator for a growing array??
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 11 Jul 2002 14:57:14 -0400

On Thursday, July 11, 2002, at 06:29 AM, Gjermund Gusland Thorsen wrote:

Do I just:

myEnumerator++;

inside the loop or is that considered bad programming???

Here' s what the NSEnumerator docs say:

"It isn't safe to modify a mutable collection while enumerating through it."

sherm--


Never put off until tomorrow what you can do today. There might be a law against it by that time.
_______________________________________________
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.
  • Prev by Date: NSTableView Resizing TableColumns
  • Next by Date: Re: Drag and Drop file paths onto text field
  • Previous by thread: NSTableView Resizing TableColumns
  • Next by thread: Sheets using Cocoa/Java
  • Index(es):
    • Date
    • Thread