How to programatically set the search field sting value in an NSOpenPanel
How to programatically set the search field sting value in an NSOpenPanel
- Subject: How to programatically set the search field sting value in an NSOpenPanel
- From: John Fox <email@hidden>
- Date: Tue, 20 Dec 2005 16:15:00 -0800
Hello Nice Cocoa Folks:
In my application, before loading a file from a path that is
referenced in a database, I check to see if the file is indeed
readable. If it's not, I use an NSOpenPanel set to the last known
location of the file. I would like to be able to set the search
field's string to be the name of the file, but I see no public API
for doing this (although I could be blind, stupid, or both). Plus, I
think the Search field is a new Tiger feature anyway.
I suppose I could look at all the subviews in the NSOpenPanel, for
one that is an NSSearchField, and if found, set its stringValue. Does
anyone have any thoughts/suggestions about this?
Many thanks in advance.
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden