• 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: UTI in Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UTI in Lion


  • Subject: Re: UTI in Lion
  • From: Sander Stoks <email@hidden>
  • Date: Fri, 23 Sep 2011 14:01:25 +0200

Sticking to the lowest common denominator only to cater for other filesystems sound like a bad idea to me - we'll be stuck with 8.3 filenames then.

I think the way this was solved in BeOS was pretty nice.  A file had a type/creator code there as a special attribute.  A file "inherited" from a different platform would be sniffed by a low-priority background thread, which employed several heuristics to determine the file type - looking at magic bytes in the header, or looking at the file extension as a last resort.  Files which already had the attributes were left alone.

Even if the sniffer thread couldn't tell Objective-C files and Matlab files apart, you could say all your .m files are Objective-C source code files and manually change the attribute for the Matlab .m files you have lying around (or the other way around, depending on which is more prevalent).

I even believe the paricular Be engineer responsible for the file system work at Apple nowadays (hello dbg!)

Cheers,
Sander_______________________________________________

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: UTI in Lion
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: UTI in Lion
  • Next by Date: Re: iPad
  • Previous by thread: Re: UTI in Lion
  • Next by thread: Re: UTI in Lion
  • Index(es):
    • Date
    • Thread