Le 31 mai 2010 à 10:53, julius a écrit :

> On 31 May 2010, at 09:43, Jean-Daniel Dupas wrote:
>>>> 
>>>> This data is covered, but you may want to explore further the docs, a few 
>>>> books on cocoa, and sample apps from apple.
>>>> Look at how they handle this.
>>>> Ideally, look at open source or sample apps that handle similar file types 
>>>> to yours.
>>> Yes. But I have!!! 
>> 
>> And have you look at the way TextEdit do that ? 
> As I said in my earlier missive
> "For instance I have been been studying TextEdit for a while now......"
> 
>> 
>> Hint: TextEdit sources are in /Developer/Examples/
>> 
>> -- Jean-Daniel
> 
> That's where I got my copy from.
> 
> Can you perhaps tell me which UTI maps onto NSPlainTextDocumentType

You would guess on kUTTypePlainText

> and which onto NSMacSimpleTextDocumentType ....?

In 3 major releases Apple didn't managed to declare UTI for modern file formats 
like sdef, 
so I doubt they defined an UTI for a dead file format like Simple Text.

-- Jean-Daniel




_______________________________________________

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

Reply via email to