All Questions

6
votes
2answers
3176 views

Saving an NSView to a png file?

I am making a simple program that creates game cards for a game I play. I have sent it out to some friends of mine for testing, but they really want it to save images, not just print them. I have trie...
2
votes
4answers
1252 views

Why is NSOpenPanel/NSSavePanel showing memory leak?

Not sure why, but making a simple [[NSOpenPanel openPanel] runModal]; creates a memory leak - seen in Leaks Instrument. Seems off. It's an auto-released object, shouldn't it be automatically relea...
2
votes
1answers
288 views

Save/Copy a file from Bundle to Desktop using NSSavePanel

I’m creating a macOS app which ships with some .zip files within its Bundle directory. Users should be able to save these files from my app to a custom directory. I found NSSavePanel and thought...
10
votes
1answers
6176 views

How can i use NSSavePanel to select a directory?

I need the user select an existing or a new directory where my app can save a few files. Can i do this with NSSavePanel or is there another directory selector class?
8
votes
1answers
3638 views

NSSavePanel is not saving a file after sandboxing an app

I'm having a problem saving a string file with NSSavePanel after sandboxing the app for the Mac App Store. I set com.apple.security.files.user-selected.read-write to YES and the NSOpenPanel is working...
8
votes
3answers
5646 views

Getting path to users Library folder in OS X

I need to open a NSSavePanel with the users Library folder as destination folder. Normally I would do this by entering ~/Library/ in [NSSavePanel beginSheetForDirectory]. This works fine as long as t...
7
votes
1answers
3083 views

NSSavePanel and the Sandbox

I have some problems understanding the new Lion's Sandbox. I know that Lion includes a trusted daemon process called Powerbox whose job is to present and control open/save dialog boxes on behalf of s...
3
votes
3answers
1850 views

NSSavePanel: Squelching the "confirm replace?" dialog

In the Nav Services world one could specify kNavDontConfirmReplacement as an option to create a NavDialogRef that would not ask the user to confirm the replacement of a file when saving with a file na...
4
votes
2answers
488 views

NSSavePanel crashes on Yosemite

I am using NSSavePanel to save image. I have used IKSaveOption which gets added to the NSSavePanel. When save panel tries to open the sheet for window it crashes saying - *** Assertion failure i...
2
votes
2answers
1694 views

Replace a file using the NSSavePanel in a sandboxed application

I create a NSSavePanel using this code: NSSavePanel *savePanel = [NSSavePanel savePanel]; savePanel.delegate = self; savePanel.directoryURL = ...; savePanel.nameFieldStringValue = ...; [savePanel b...

Previous Next