On Oct 16, 2012, at 18:11, Adam R. Maxwell wrote: > > On Oct 16, 2012, at 08:10 AM, Christiaan Hofman <[email protected]> wrote: > >> Do you remember what issues there were with mixing UTI and non-UTI document >> types? > > Does this ring any bells? > > http://www.omnigroup.com/mailman/archive/macosx-dev/2007-November/060638.html >
I don't remember though why I said it's all or nothing. I seem to remember that some things did not work properly when mixing UTI and non UTI types, but can't find back what went wrong, and also cannot reproduce. Perhaps it was that NSExportableAs did not support mixed types, but that does seem to work in 10.6. A simple test project with mixed types seems to work properly, but that only uses custom extensions and types. > I think there were problems with the export-only file types, among other > things, like calling a .tgz file something other than what the OS calls it? On 10.6 now, at least in a test project I can save with a custom type that declares a known file extension like .txt. Not sure what it does with the system though. Perhaps if they're imported UTIs they should always be ignored in favor of the system defined ones. > >> It seems TeXShop is really making a mess of it, as they also use the same >> UTI for different document types. AFAIK that is not supported because the >> UTI is used as the document types, so I don't even see how that could work. > > I haven't looked for a while, but if that's the case, things will certainly > go badly. Keeping deprecated load/save methods will also cause problems, so > UTI is really all-or-nothing, and when you accept it, you have to go with its > limitations (of course!). > > I also wrote up some stuff on conflicts and tried to make that document > useful for developers without ranting too much about Apple's design > decisions. However, if you have more than one UTI for a given tag (i.e., > extension), Launch Services wets itself, and Apple really doesn't care. > > Adam The reason I am again looking at it is that I finally figured out a way to create UTIs for dynamically defined document types, such that the system knows what file extension is associated to it, which is the most important property for NSDocument to be able to deal with it for saving. Christiaan ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ skim-app-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-develop
