• 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: Renaming files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Renaming files?


  • Subject: Re: Renaming files?
  • From: Clark Cox <email@hidden>
  • Date: Wed, 22 Dec 2004 11:35:43 -0500

On Wed, 22 Dec 2004 14:03:42 +0000, Jeremy Dronfield
<email@hidden> wrote:
>
> For filename/path comparisons of the kind you're doing, use a
> case-insensitive compare. There is another reason for this: the file
> system is case-insensitive. -isEqualToString: will tell you that
> "myImage.jpg", "MyImaGe.jpg" and "MYIMAGE.JPG" are all different,
> whereas the file system considers them identical.

Without checking the format of the volume, one cannot assume that
pathnames are case-insensitive, even on MacOSX. Several volume formats
supported by the Mac are case-*sensitive* (UFS, CIFS, NFS, WebDAV,
case-sensitive-HFS+, etc.).


--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
 _______________________________________________
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: Renaming files?
      • From: Jeremy Dronfield <email@hidden>
References: 
 >Renaming files? (From: Christoffer Lerno <email@hidden>)
 >Re: Renaming files? (From: Jeremy Dronfield <email@hidden>)
 >Re: Renaming files? (From: Christoffer Lerno <email@hidden>)
 >Re: Renaming files? (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: NSImage very strange
  • Next by Date: Re: Renaming files?
  • Previous by thread: Re: Renaming files?
  • Next by thread: Re: Renaming files?
  • Index(es):
    • Date
    • Thread