Re: Customization of NSSavePanel
Re: Customization of NSSavePanel
- Subject: Re: Customization of NSSavePanel
- From: Benjamin Dobson <email@hidden>
- Date: Fri, 20 Mar 2009 23:05:03 +0000
On 20 Mar 2009, at 13:39:42, Sourabh Sahu wrote:
Hi Everyone,
I am trying to customize NSSavePanel using method
prepareSavePanel,but I want NSSavePanel browsing feature to be
disabled that is user cannot change the directory ,apart from it I
also want NSSavePanel to show file of any particular type,suppose I
want to show only text files.all other files should get hide.
Thanks in advance,
-Sourabh
NSSavePanel does not and should not hide files. The file system in
NSSavePanel/NSOpenPanel looks the same as in the Finder – that's how
it's meant to be. It also allows users to place files where they like.
That's pretty much the point.
Given that you don't seem to want *any* of the features of
NSSavePanel, why not just bring up a dialog box with a text field for
the filename and a "Save" and "Cancel" button? That's all you seem to
want of the built-in functions, so just do that._______________________________________________
Cocoa-dev mailing list (email@hidden)
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/Update your Subscription:
This email sent to email@hidden