nsopenpanel
stringByReplacingOccurenceOfString fails
I\'m trying to make a Mac OS X application that asks the user for a directory. I\'m using an NSOpenPanel that gets triggered when the user presses a \"Browse\" button.[详细]
2023-04-12 01:15 分类:问答Problem getting files from folder, error recognizing folder. (Objective c)
I have the user select a folder from an NSOpenPanel. This returns a filepath like: file://localhost/Folder. Here is my code where it all goes wrong:[详细]
2023-04-05 19:37 分类:问答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.[详细]
2023-03-26 13:46 分类:问答MacRuby: EXC_BAD_ACCESS on file dialog
I have been using MacRuby and running through the book MacRuby:The Definitive Guide by Matt Aimonetti.[详细]
2023-03-16 19:36 分类:问答Restrict access to certain folders using NSOpenPanel
I\'m using NSOpenPanel to allow a user to select a folder to save documents into. I would like to restrict what folder (in te开发者_C百科rms of hierarchy) they can save into. Essentially, I want to pr[详细]
2023-02-25 00:03 分类:问答Completion handler never called for NSSavePanel beginWithCompletionHandler
When I open an NSSavePanel or NSOpenPanel instance with beginWithCompletionHandler: the handler is never called. Instead I see the panel appear for a fraction of a second, before it goes away again wi[详细]
2023-02-20 00:12 分类:问答NSOpenPanel File URL Format
I have a NSOpenPanel and I get the URL for the file from it and put it into an NSString like this: imageURL = [[[panel URLs] objectAtIndex: 0] absoluteString];[详细]
2023-02-17 05:26 分类:问答NSOpenPanel from C++ boost thread
I\'m invoking a NSOpenPanel from a thread created by boost C++. t开发者_如何学运维he panel behaves erratically and doesn\'t respond well to mouse, that is clicking on objects does nothing sometime wh[详细]
2023-01-31 17:55 分类:问答Changing the text of the cancel button of an NSOpenPanel (Cocoa OSX)
I would like to have a customizable chooser where many features may开发者_运维百科 be customized.One thing I cannot figure out how to do is change the text of the cancel button.I found that the method[详细]
2022-12-30 17:56 分类:问答Open panel appears then disappears immediately
I am using this code: NSOpenPanel *openPanel = [NSOpenPanel openPanel]; [openPanel beginForDirectory:nil file:nil types:[NSImage imageFileTypes] modelessDelegate:self didEndSelector:NULL contextInfo:[详细]
2022-12-19 19:40 分类:问答