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 (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/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to