Hello Felix, Normally the NSString constants comes with the associated bindings. They are loaded from Apple code, i.e. they are not strings in MonoTouch code, so you're always sure to get the same value.
I did not see (quick check) bindings for UTType so the constants might be missing from current MonoTouch. Just fill a bug report and we'll add them asap and give you the code you can use (inside your application) as a workaround until it's released. Regards, Sebastien On Wed, May 9, 2012 at 7:12 PM, Felix Collins <[email protected]> wrote: > Further to my question... Apple says > "Important When using system-defined UTIs in your code, *you should use the > constants defined in UTCoreTypes.h* in the Launch Services framework when > available, rather than the actual UTI strings. For example, pass > kUTTypeApplication rather than “com.apple.application”. “System-Declared > Uniform Type Identifiers ” lists these constants in addition to the UTI > strings. " (Emphasis mine) > > at: > developer.apple.com/library/ios/#documentation/MobileCoreServices/Reference/UTTypeRef/Reference/reference.html > > So how have others handled this? UTIs are so pervasive in mac and ios I find > it hard to believe that these constants have not been brought into > monotouch. The thought of typing the strings out into my own constants class > actually makes my skin crawl. > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Where-is-uttype-in-monotouch-tp4619379p4622092.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
