NSOpenPanel is an Objective-C class used to provide users with a standard UI for opening files and directories on Mac OS X. It is part of the Apple Cocoa/Appkit frameworks.
Questions tagged [nsopenpanel]
203 questions
0
votes
1 answer
How to allow files with exec permission in NSOpenPanel?
The Cocoa NSOpenPanel, in a third party open source library VSTGUI, disables files that have exec permission set. The exec bit is not needed, but it often seems to be set on files created on Windows and downloaded to OS X.
The library uses…

Matti Jokipii
- 561
- 1
- 6
- 20
0
votes
2 answers
How to access Media section (Photo & Movies) directly from NSOpenPanel in Mac OS X application?
I already refered this link
iMedia
Now i am using NSOpenPanel to open iPhoto library folder.
Here is the code which allow to open.
int i = 0;
NSOpenPanel* openDlg = [NSOpenPanel openPanel];
[openDlg setCanChooseFiles:YES];
[openDlg…

Solid Soft
- 1,872
- 2
- 25
- 55
0
votes
1 answer
Change the default name that an NSOpenPanel uses when creating a folder?
I'm using an NSOpenPanel, and the panel has a "New Folder" button. When I click the button, it says "untitled folder". How I can set a folder name of my choice?
This is the code I'm using right now:
NSOpenPanel* openDlg = [NSOpenPanel…

Anand
- 35
- 1
- 8
0
votes
1 answer
NSOpenPanel acting weird
I'm trying to use NSOpenPanel to bring up on open file page. It works fine for the most part except for 3 things:
The first issue is that the side bar doesn't appear, although I can still click on it.
The second issue is that when I switch to a…

user1998511
- 455
- 1
- 8
- 21
0
votes
0 answers
NSOpenPanel not opening all the time?
OK, this is my issue :
I have an application with one window (an NSPanel actually)
I'm trying to open and NSOpenPanel and get some input
I may have to push the trigger button like 2-3 times, before it opens up...
This is my code :
-…

Dr.Kameleon
- 22,532
- 20
- 115
- 223
0
votes
1 answer
can't open image with NSOpenPanel
I use below code for open image with NSOpenPanel but doesn't work
//panel=NSOpenPanel
NSString *imgg = [NSString stringWithFormat:@"%@",panel.URL];
self.imgUser.image=[NSImage imageNamed:imgg];
user437064
-1
votes
2 answers
NSOpenPanel restrict already selected file
I have added NSOpenPanel for selecting folders. But I want achieve following cases:
1. Restrict user to select already selected folders.
2. Restrict user to select sub folders if parent folder already selected.
Or if above cases are not possible…

Sangram Shivankar
- 3,535
- 3
- 26
- 38
-2
votes
1 answer
Import a file - form NSOpenpanel to textview - cocoa for Mac app
How would I be able to import a selected files (txt)from nsOpenPanel to a textView or another View?
thank's
Mauro

TheMabur
- 1