That's not how these constants work. These are intended to be constants that return the correct type for the current build of the system. This protects your software from a change in the actual UTI of a common type.
On May 30, 2010, at 1:04 PM, julius wrote: > Mike > Thanks, that's a great diagram but as far as I can see it's not the kUTTypes > that are for me the problem but rather just determining which UTI goes with > which of the > > NSPlainTextDocumentType > NSRTFTextDocumentType > NSRTFDTextDocumentType > NSMacSimpleTextDocumentType > NSHTMLTextDocumentType > NSDocFormatTextDocumentType > NSWordMLTextDocumentType > NSOfficeOpenXMLTextDocumentType > NSOpenDocumentTextDocumentType > > unless of course there's a way of specifying the constants for > NSAttributedString using the kUTTypes that I've not found yet > Thanks again > Julius > > > > > On 30 May 2010, at 18:33, Mike Abdullah wrote: > >> This should give a decent overview of the main system types: >> http://www.mikeabdullah.net/utis_diagram/ >> >> On 30 May 2010, at 17:47, julius wrote: >> >>> Kyle Thanks >>> >>> I'm obviously missing something, what type for instance maps onto >>> NSPlainTextDocumentType? >>> I'm currently working my way down the UTI list by a process of elimination, >>> i.e. put a UTI into the Info.plist then try to save a document as that type >>> and see if my choice of document type raises an error. But that's slow, e.g. >>> >>> zDict = [NSDictionary >>> dictionaryWithObjectsAndKeys:NSRTFDTextDocumentType, >>> NSDocumentTypeDocumentAttribute, nil]; >>> NSData * zData = [self.nsTextStorageObj dataFromRange:zRange >>> >>> documentAttributes:zDict >>> >>> error:outError]; >>> Julius >>> >>> On 30 May 2010, at 17:29, Kyle Sluder wrote: >>> >>>> On Sun, May 30, 2010 at 9:22 AM, julius <jul...@juliuspaintings.co.uk> >>>> wrote: >>>>> I'm having difficulties finding the Uniform Type Identifier strings that >>>>> correspond to the document types associated with the >>>>> NSDocumentTypeDocumentAttribute key as specified in the >>>>> NSAttributedString Application Kit Additions Reference >>>> >>>> /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTCoreTypes.h >>>> >>>> --Kyle Sluder >>> >>> ------------------------------------------------------ >>> http://juliuspaintings.co.uk >>> >>> >>> _______________________________________________ >>> >>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >>> >>> 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: >>> http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net >>> >>> This email sent to cocoa...@mikeabdullah.net >> > > ------------------------------------------------------ > http://juliuspaintings.co.uk > I'm looking for comments re: http://juliuspaintings.co.uk/physics-of-thought > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/jjoyce%40apple.com > > This email sent to jjo...@apple.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com