• 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: Ken Thomases <email@hidden>
  • Date: Thu, 28 Aug 2008 13:28:02 -0500

On Aug 27, 2008, at 5:59 PM, R.L. Grigg wrote:

Hmm, I guess the wrinkle in this particular case is if the "contract" doesnt specify something that the programmer assumes to be safe to do (like enumerating backwards), how can you know how to implement your end?

Enumerating NSArrays backwards is safe and supported by the framework. The earlier discussion had to do with mutating a collection while enumerating, which is explicitly stated to be unsafe. Somebody (I forget who) claimed that mutating was "safe" while enumerating backwards, but they were wrong. In this case, their wrongness was not based on things left unsaid in the contract, but on violating things explicitly laid out in the contract.


Cheers,
Ken
_______________________________________________

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


  • Follow-Ups:
    • Re: File Extensions Problem
      • From: Graham Cox <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: Thomas Engelmeier <email@hidden>)
 >Re: File Extensions Problem (From: "R.L. Grigg" <email@hidden>)
 >Re: File Extensions Problem (From: Ken Thomases <email@hidden>)
 >Re: File Extensions Problem (From: "R.L. Grigg" <email@hidden>)

  • Prev by Date: Re: NSProgressIndicator not responding to calls outside of AppController class
  • Next by Date: Re: #import, #include, pre-compiled headers
  • Previous by thread: Re: File Extensions Problem
  • Next by thread: Re: File Extensions Problem
  • Index(es):
    • Date
    • Thread