• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to programatically set the search field sting value in an NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to programatically set the search field sting value in an NSOpenPanel
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: NSTokenField - drag and drop contacts from Address Book panel
  • Next by Date: RE: XCode and subversion
  • Previous by thread: NSTokenField - drag and drop contacts from Address Book panel
  • Next by thread: Re: How to programatically set the search field sting value in an NSOpenPanel
  • Index(es):
    • Date
    • Thread