Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Steve Mills
On Apr 13, 2015, at 14:29:07, Ken Thomases k...@codeweavers.com 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

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Ken Thomases
On Apr 13, 2015, at 2:17 PM, Sean McBride s...@rogue-research.com 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

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

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. Eng

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Quincey Morris
On Apr 13, 2015, at 12:33 , Steve Mills sjmi...@mac.com 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

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Steve Mills
On Apr 13, 2015, at 15:52:48, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 13, 2015, at 12:33 , Steve Mills sjmi...@mac.com wrote: $(PRODUCT_NAME:rfc1034identifier) Personally, I always replace this with an explicit string on a project that’s destined for public