nsfilewrapper

Use ZIP-archives to store NSDocument data

I noticed that Apple started using zip archives to replace document packages (folders appearing as a single file in Finder) in the iWork applications. I'm considering doing the same as I keep getting support emails related to my document packages getting corrupted when copying them to a windows fileserver. My questions is what would be ...

Dragging attachments out of NSTextView

Hi all, I am working on mac mail like feature- 1. dragging a file on body of message being composed and showing it as icon, over it. 2. dropping the icon of file from message body back to desktop or to any folder, so that it gets downloaded in it. I am able to implement the first point using NSTextView and calling method: -(void)setImp...

Overriding NSDocument's fileWrapperOfType causes "Document could not be saved."

I've got to be missing something simple, but Google is not helping. My file saves and loads fine. (I've overridden dataOfType to get some stuff in it.) Then I override fileWrapperOfType (in preparation for creating a bundle), and I get a "The document 'Untitled' could not be saved as 'test'." sheet when I try to save. Even when I empty ...

Is it possible to search files of particular extension in the entire device ?

In my application, i am trying to find all files of particular extension (like .pdf, .txt, etc) that are stored in the device (either downloaded or transferred from system) and want to list them in table View. Is it possible to do so and if it is then can i associate file of specific extension to get it open in supporting application (an...