RE: How to show choose file dialog box in cocoa?
RE: How to show choose file dialog box in cocoa?
- Subject: RE: How to show choose file dialog box in cocoa?
- From: "Mradul Mandhanya" <email@hidden>
- Date: Wed, 5 Oct 2005 18:52:45 +0530
- Thread-topic: How to show choose file dialog box in cocoa?
See NSOpenPanel
U can use like
NSOpenPanel *attachmentPanel = [NSOpenPanel openPanel];
//to allow multiple selection
[attchmentPanel setAllowsMultipleSelection:TRUE];
//Then u can show that panel as a sheet or modal dialog
//If like sheet then use
[attachmentPanel beginSheetForDirectory:nil
file:nil
modalForWindow:mPostStaticCommentWindow
modalDelegate:self
didEndSelector:@selector(addAttachmentDidEnd:returnCode:contextInfo:)
contextInfo:NULL];
in specified selector u will get all the info abt the user selection
see the class NSOpenPanel
Regards,
Mradul Mandhanya
-----Original Message-----
From: cocoa-dev-bounces+mmandhanya=email@hidden
[mailto:cocoa-dev-bounces+mmandhanya=email@hidden] On
Behalf Of MP 09
Sent: Wednesday, October 05, 2005 5:37 PM
To: email@hidden
Subject: How to show choose file dialog box in cocoa?
Hi All,
I want to show user a Select File Dialog Box. Where user can select a
single file. I can check weather file name is correct or not. Also
return
file name which has been chosen by user. How i can do that in cocoa?
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden