Re: Using NSSavePanel to export to UTTypeFolder without a file extension.

2013-01-23 Thread Thomas Bunch
Following up on my own question, NSSavePanel can be made to “work” under PowerBox with a UTI that has no file extension, but it does get upset with itself and fail an assertion when it elects to automatically turn on the hide extension checkbox in response to the user changing the file type.

Using NSSavePanel to export to UTTypeFolder without a file extension.

2013-01-17 Thread Thomas Bunch
Hi folks, NSSavePanel does not like UTTypes with no file extension. Under PowerBox, I can't find a good workaround. One of OmniPlan's export types is a directory full of HTML and associated resources. Being an old NeXT guy, I immediately called this a .htmld file, but when the feature was

Re: Using NSSavePanel to export to UTTypeFolder without a file extension.

2013-01-17 Thread Quincey Morris
On Jan 17, 2013, at 14:12 , Thomas Bunch t...@omnigroup.com wrote: Launch, take your document (very much a stub), File - Export…, My Flat Format. Now File - Export… again but this time pick My HTML Folder Export. If you have your file extensions visible you'll see at this point that the

Re: Using NSSavePanel to export to UTTypeFolder without a file extension.

2013-01-17 Thread Thomas Bunch
Yes, in fact, I do exactly this. It's kind of suboptimal, in that NSSavePanel will first give you a warning: “Foo.oplx” already exists. Do you want to replace it?” and so on… the user will probably reflexively accept that one. Then we check and see that you're asking to dump a folder of web

Re: Using NSSavePanel to export to UTTypeFolder without a file extension.

2013-01-17 Thread Quincey Morris
On Jan 17, 2013, at 16:20 , Thomas Bunch t...@omnigroup.com wrote: Yes, in fact, I do exactly this. It's kind of suboptimal, in that NSSavePanel will first give you a warning: “Foo.oplx” already exists. Do you want to replace it?” and so on… the user will probably reflexively accept

Re: Using NSSavePanel to export to UTTypeFolder without a file extension.

2013-01-17 Thread Thomas Bunch
All good thoughts, but hold the phone. I think I have a mishmash a lot of old deprecated info plist keys and outright misapprehensions in my Info.plist, especially under CFBundleDocumentTypes and UTExportedTypeDeclarations. I think the file extension swapping will behave correctly once I've