![tableflip list tableflip list](https://images.discordapp.net/avatars/801127823078064198/0a7eb76e93e843974d58d66b35a2e6d1.png)
The latest version of TableFlip hits the digital shelves this weekend. This is a very nice convenience, but when you run into trouble with the default picker, as I did, you wonder if writing your own from scratch would be easier. NSDocument’s save panel comes prepared with a file format picker that contains the app’s registered document types.
#Tableflip list how to#
How to Create a NSSavePanel accessoryView in Swift to Pick File Formats.I couldn’t spend a lot of consecutive time on eitherthe coding problem or the posts, so it became a pain to keep up with all the details and experiments – I hope I have nevertheless told a somewhat intelligible story so far. Define and then Hide a New Document TypeĪll previous installments in this series were written some time during the past 6 weeks or so.
#Tableflip list code#
![tableflip list tableflip list](https://media.forgecdn.net/avatars/thumbnails/266/793/120/120/637233608951126913_animated.gif)
When I was sorting out effects of the overlapping file types for plain text and Markdown, I found the culprit: the file extension changed because I passed "" to the NSDocument.revert method, even though the fileType property was set by the system to "ain-text".(I wanted to keep the file type and prevent automatic type changes.) That didn’t solve the underlying problem, but that’s what you’d be looking for if your intention is to change the file type.