Gah! Now I feel like such a dimwit! I thought that those would only work on NSSavePanel - I didn't think to try them on NSOpenPanel.
I shall now go and hide my head in a paper bag, in shame. Thank you so much, Ken. On 14 Sep 2013, at 16:54, Ken Thomases <[email protected]> wrote: > On Sep 14, 2013, at 10:42 AM, Pax wrote: > >> I have a requirement for a save dialog where the user can select a location >> but not a filename. At the moment I am implementing this functionality >> using the Open panel - but this has the disadvantages of a) having the >> action button labelled Open rather than Save and b) not having 'New Folder' >> functionality. > > An open panel is the correct UI to use to let the user pick a folder. You > can change the button title with -[NSSavePanel setPrompt:]. Use > -[NSSavePanel setCanCreateDirectories:] with YES to enable the New Folder > button. > > Regards, > Ken > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
