nssavepanel Questions
1
I am generating a PDF document and offering the user the option to save it to disk. I present them with an NSSavePanel for them to select the filename to save it as. If they choose a file that alre...
Hamm asked 19/3, 2014 at 19:7
1
I'm trying to use the NSSavePanel and added this line to my code.
let test = NSSavePanel()
Everytime this code is called the this error appears.
I'm not quite sure what is happening here becaus...
Aspia asked 23/12, 2017 at 17:14
2
Solved
In Swift 3/Xcode8.1/10.12.2 I am trying to use a NSOpenPanel to get a text file with the following code, written by DenBeke
@IBAction func browseFile(sender: AnyObject) {
let dialog = NSOpenPane...
Larainelarboard asked 27/12, 2016 at 17:48
1
Apple gives sample code for Creating PDF document. But It uses CFURLRef
NSPanel savepanel gives NSURL.
I can't convert NSURL to CFURLRef
path = CFStringCreateWithCString (NULL, filename, kCFSt...
Zest asked 21/4, 2016 at 21:45
2
Solved
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 t...
Percy asked 30/3, 2011 at 19:40
1
Consider a Cocoa NSDocument that supports two document types (e.g. BMP and JPEG). While one type has no save options (e.g. BMP), the other does (e.g. compression level for JPEG).
How do you implem...
Fuss asked 12/3, 2013 at 9:35
2
When showing an NSSavePanel while the app is in background I get the following error:
RVS:__54-[NSRemoteSavePanel _runOrderingOperationWithContext:]_block_invoke_0319 : Timeout occured while waiti...
Prewitt asked 27/12, 2012 at 19:32
1
Solved
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 work...
Bonehead asked 22/5, 2012 at 19:32
1
Solved
I am writing an application in Cocoa which allows the user to export data in 3 different formats: CSV, JSON, and XML. I have added the allowed extensions to an NSSavePanel:
NSSavePanel* saveFile =...
Vender asked 10/5, 2012 at 12:0
1
Scenario:
I like to define the allowed file types (content types) in the Info.plist file of my Cocoa application. Therefore, I added them like the following example shows.
# Extract from Info.pli...
Bulge asked 27/9, 2011 at 13:8
3
Solved
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 a...
Anselma asked 3/11, 2011 at 10:26
1
Solved
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...
Backbone asked 27/7, 2011 at 12:35
1
Solved
I'm working on a project that essentially creates files via a shell script using "sox". The application is not document-based, all its doing is calling a script that creates files, and doesn't inte...
Knitted asked 19/5, 2011 at 21:23
1
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?
Adlee asked 3/8, 2010 at 11:38
1
© 2022 - 2024 — McMap. All rights reserved.