Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Steve Mills
On Apr 13, 2015, at 15:52:48, Quincey Morris wrote: > On Apr 13, 2015, at 12:33 , Steve Mills wrote: > >> $(PRODUCT_NAME:rfc1034identifier) > > Personally, I always replace this with an explicit string on a project that’s > destined for public release. Part of it is old-fogeyism, because it

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Quincey Morris
On Apr 13, 2015, at 12:33 , Steve Mills wrote: > > And this is correct for the fileType parameter of > writeSafelyToURL:ofType:forSaveOperation:error:? The docs don't explicitly > say that fileType is a UTI, or which part of the Info.plist it comes from. > We've just come to assume it's always

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Steve Mills
On Apr 13, 2015, at 14:29:07, Ken Thomases wrote: > > Or -[NSWorkspace type:conformsToType:]. And this is correct for the fileType parameter of writeSafelyToURL:ofType:forSaveOperation:error:? The docs don't explicitly say that fileType is a UTI, or which part of the Info.plist it comes from.

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Ken Thomases
On Apr 13, 2015, at 2:17 PM, Sean McBride wrote: > On Mon, 13 Apr 2015 14:09:06 -0500, Steve Mills said: > >> So, should string comparisons be case-insensitive when comparing UTIs? >> If not, then things fail. > > Don't compare as strings, use UTTypeConformsTo(). Or -[NSWorkspace type:conforms

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Sean McBride
On Mon, 13 Apr 2015 14:09:06 -0500, Steve Mills said: >So, should string comparisons be case-insensitive when comparing UTIs? >If not, then things fail. Don't compare as strings, use UTTypeConformsTo(). Cheers, -- Sean McBride, B. En

UTI case doesn't matter sometimes?

2015-04-13 Thread Steve Mills
The docs for creating a new app state that UTIs are case-sensitive: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html#//apple_ref/doc/uid/TP40012582-CH28-SW8 "However, unlike domain names, bundle IDs are case sens