• 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
documentForFileName: on case-insensitive filesystem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

documentForFileName: on case-insensitive filesystem


  • Subject: documentForFileName: on case-insensitive filesystem
  • From: Alex Rice <email@hidden>
  • Date: Sun, 25 May 2003 20:42:03 -0600

NSDocumentController's -documentForFileName: apparently does a case sensitive match for the filename. This results in a bug in my program.

Shouldn't the appropriate behavior of -documentForFileName: to detect the filesystem type and do a case-sensitive or case-insensitive match on the filename?

How can one check if the volume a file is on is case-sensitive or not. I took a quick look through NSFileManager, but I didn't see anything. Would checking for NSFileHFSCreatorCode from NSFileManager work? I don't know if HFS files are guaranteed to have a creator code.

Alex Rice <email@hidden> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
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: Re: Recommendations for scripting/extension languages for Cocoa apps
  • Next by Date: Quartz2D image sequence player
  • Previous by thread: Quicktime API: Getting the "nice" movie name?
  • Next by thread: Quartz2D image sequence player
  • Index(es):
    • Date
    • Thread