• 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
Re: UTI strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UTI strings


  • Subject: Re: UTI strings
  • From: julius <email@hidden>
  • Date: Sun, 30 May 2010 19:04:41 +0100

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 <email@hidden> 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 (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
>

------------------------------------------------------
http://juliuspaintings.co.uk
I'm looking for comments re: http://juliuspaintings.co.uk/physics-of-thought


_______________________________________________

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 strings
      • From: Ken Thomases <email@hidden>
    • Re: UTI strings
      • From: John Joyce <email@hidden>
References: 
 >UTI strings (From: julius <email@hidden>)
 >Re: UTI strings (From: Kyle Sluder <email@hidden>)
 >Re: UTI strings (From: julius <email@hidden>)
 >Re: UTI strings (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: UTI strings
  • Next by Date: Re: UTI strings
  • Previous by thread: Re: UTI strings
  • Next by thread: Re: UTI strings
  • Index(es):
    • Date
    • Thread