Well, NSOpenPanel inherits from NSSavePanel, so setNameFieldStringValue: might 
work. I haven't tried this, and I don't know whether there would be sandboxing 
issues.

On 2012-06-11, at 7:08 AM, Rick C. wrote:

> Hi,
> 
> Been through numerous posts on stack overflow without a solution so here goes:
> 
> runModalForDirectory:file:types: was deprecated but in the docs it doesn't 
> give the replacement for the file argument.  How can we have a file 
> preselected when running an open panel?
> 
> Thanks,
> 
> rc
> _______________________________________________
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/dave.fernandes%40utoronto.ca
> 
> This email sent to dave.fernan...@utoronto.ca


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to