Thanks all for the replies. I know setNameFieldStringValue: doesn't work I tried it. I also tried (I thought) the suggestion by corbin but I will go back and try it again to make sure I did it right. I'll post back my results thanks!
rc On Jun 12, 2012, at 5:11 AM, Corbin Dunn wrote: > This is a known limitation, as Lee Ann Rucker reported in the prior message. > > One work around is to use setDirectoryURL: and pass it the actual file (not > the folder). I believe that will pre-select it (sort of by accident). > > corbin > > On Jun 11, 2012, at 4:08 AM, Rick C. <rickcort...@gmail.com> 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/corbind%40apple.com >> >> This email sent to corb...@apple.com > _______________________________________________ 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