Since the open panel is based on extensions, and most unix executables
don't have extensions, you will have to use the save panel delegate
method to determine if a file should be displayed or not (see the
header).
Or, alternatively, require Leopard for your app.
corbin
On May 15, 2009, at
ok.. what is the option in Tiger? any suggestions?
-Arun
On Fri, May 15, 2009 at 9:04 PM, Corbin Dunn wrote:
>
> On May 15, 2009, at 4:52 AM, Arun wrote:
>
> Hi..
>>
>> If i use type: [NSArray arrayWithObjects:@"public.executable",@"app",nil],
>> i am able to select unix-executables and .app's
On May 15, 2009, at 4:52 AM, Arun wrote:
Hi..
If i use type: [NSArray
arrayWithObjects:@"public.executable",@"app",nil], i am able to
select unix-executables and .app's in Leopard. But if i try the same
thing in tiger, it is not allowing me to select unix-executable
files. Is there any
Hi..
If i use type: [NSArray arrayWithObjects:@"public.executable",@"app",nil], i
am able to select unix-executables and .app's in Leopard. But if i try the
same thing in tiger, it is not allowing me to select unix-executable files.
Is there any special option that i need to pass ?
Thanks
Arun KA
On Apr 23, 2009, at 12:40 AM, Arun wrote:
I have used [NSArray
arrayWithObjects:@"public.executable",@"app",nil] .
This will allow me to choose only executables and applications
(.app's).
But If i create an executable from command line using gcc - a.out,
it is not
allowing me to select the
Write your own filter:
use the NSOpenPanel delegate method: - (BOOL)panel:(id)sender
shouldShowFilename:(NSString *)filename
Le 23 avr. 09 à 09:40, Arun a écrit :
I have used [NSArray
arrayWithObjects:@"public.executable",@"app",nil] .
This will allow me to choose only executables and
I have used [NSArray arrayWithObjects:@"public.executable",@"app",nil] .
This will allow me to choose only executables and applications(.app's).
But If i create an executable from command line using gcc - a.out, it is not
allowing me to select the a.out file.
Do i need to add @"out" to the array or
On Wed, Apr 22, 2009 at 5:59 PM, Dave Keck wrote:
> - (void)setAllowedFileTypes:(NSArray *)types
Note that on Leopard this method takes an array of UTIs, so you might
want to take a look at the list of System-Declared UTIs at
http://developer.apple.com/DOCUMENTATION/Carbon/Conceptual/understandin
- (void)setAllowedFileTypes:(NSArray *)types
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Upda
Hi,
Is there any way when a NSOpenPanel is launched, only .app's and Mac OS X
executables are allowed to select and gray out all the other file types?
Thanks
Arun
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
10 matches
Mail list logo