Все вопросы: [uti]

2 вопросов

похожие теги:
20
голосов
2ответов
6801 просмотров

Getting an Uniform Type Identifier for a given extension

I'm trying to find some way in Cocoa to translate from file extensions to Uniform Type Identifiers. That is, I want to find some way of doing this: ".jpg" => "public.jpeg" ".html" => "public.html" ".ttf"=> "public.truetype-font" I've searched on the NSWorkspace docs but couldn't find...

1
голосов
2ответов
576 просмотров

pboard types will be deprecated

According to NSPasteboard.h (line 294 in the standard Snow Leopard copy of the Xcode SDK) it states: /* Use of pboard types should be replaced with use of UTIs. Pboard types will be deprecated in a future release. */ I've tried finding samples of using UTIs as a replacement for pboard types bu...