• 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
UTI and/or bundle-IDs with small letters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UTI and/or bundle-IDs with small letters


  • Subject: UTI and/or bundle-IDs with small letters
  • From: Daryle Walker <email@hidden>
  • Date: Thu, 02 Mar 2017 14:38:16 -0500

I’m trying out my document-based Mac app’s data-read routine, and the code it being skipped. I actually check the typeName (i.e. the UTI) and it doesn’t match. My bundle identifier for the app has capital letters. I base my document’s main type off that identifier, so it also has capital letters. Turns out that the system gives me the UTI in all small letters, so my (Swift) “switch” fails and my no-matching-type code is executed. I know I could switch my bundle ID to all small letters, but I want to know first if this is documented? Or is the small-letters transformation a bug?

BTW, I looked at the TextEdit sample code, and it uses the type conformance methods instead of an exact string match. Should I be doing that instead? (Although that means no more “switch” statement.)

—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

_______________________________________________

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 and/or bundle-IDs with small letters
      • From: Daryle Walker <email@hidden>
    • Re: UTI and/or bundle-IDs with small letters
      • From: Quincey Morris <email@hidden>
    • Re: UTI and/or bundle-IDs with small letters
      • From: Ben Kennedy <email@hidden>
  • Prev by Date: Search terms with NSDocument and Apple Events
  • Next by Date: Re: UTI and/or bundle-IDs with small letters
  • Previous by thread: Search terms with NSDocument and Apple Events
  • Next by thread: Re: UTI and/or bundle-IDs with small letters
  • Index(es):
    • Date
    • Thread