• 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: File Extensions Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Extensions Problem


  • Subject: Re: File Extensions Problem
  • From: "Sherm Pendley" <email@hidden>
  • Date: Fri, 22 Aug 2008 12:27:46 -0400

On Fri, Aug 22, 2008 at 11:39 AM, Andrew Merenbach
<email@hidden> wrote:
>
> To build on this, doesn't fast enumeration (Leopard-only, of course) raise
> an exception if a value is modified while the enumeration is running?  (Not
> tested personally by me, but building upon an earlier thread from a little
> while back.)

I would assume that Bad Things would happen in that case, based on my
understanding of how fast enumeration is implemented. It gathers and
returns a C array of pointers to the values in the collection, which
can then be enumerated with simple pointer arithmetic. Changing the
original collection object would leave the C array out of sync with
it, leading to Bad Things happening - maybe an exception, maybe a
crash, I don't know, but definitely nothing good.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >File Extensions Problem (From: Adil Saleem <email@hidden>)
 >Re: File Extensions Problem (From: Michael Dautermann <email@hidden>)
 >Re: File Extensions Problem (From: Andrew Merenbach <email@hidden>)
 >Re: File Extensions Problem (From: Graham Cox <email@hidden>)
 >Re: File Extensions Problem (From: Phil <email@hidden>)
 >Re: File Extensions Problem (From: Graham Cox <email@hidden>)
 >Re: File Extensions Problem (From: "Michael Ash" <email@hidden>)
 >Re: File Extensions Problem (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: Object change to NSView update
  • Next by Date: Re: NSString and special characters
  • Previous by thread: Re: File Extensions Problem
  • Next by thread: Re: File Extensions Problem
  • Index(es):
    • Date
    • Thread