Re: Find panel tutorial?
Re: Find panel tutorial?
- Subject: Re: Find panel tutorial?
- From: Prachi Gauriar <email@hidden>
- Date: Mon, 17 Jan 2005 01:45:03 -0500
On Jan 16, 2005, at 8:38 AM, M. Uli Kusterer wrote:
I have an NSOutlineView that lists lots of text items, and I would
like to offer a way to find stuff there, because the list may be
rather long. What's the easiest way to do this?
There only seems to be performFindPanelAction:, which apparently is
for people trying to roll their own Find panel. I thought that since
10.3 Apple was providing a default Find panel for general consumption.
Am I mistaken?
Not really. There is a Find panel for general consumption in Panther,
but it's just for NSTextViews, and you can't customize it. If you want
to customize the Find panel or use it for views other than NSTextViews,
you have to roll your own. I mentioned that I'd like this to change
during the Cocoa feedback session at WWDC. I believe Ali (Ozer) said
it was something they wanted to do, but I doubt it'll be in the Tiger
timeframe.
I've Googled, searched Cocoa Builder and developer.apple.com high and
low, but I can't seem to find any information. The best I found was an
ages-old article at stone.com on tearing the Find Panel out of
TextEdit.
The current version of TextEdit uses NSTextView's default find panel,
so you can't check the current sample code. The HTMLEdit example at
Stepwise implements a find panel and gives code. The relevant article
is here:
<http://www.stepwise.com/Articles/Technical/HTMLEditor/HTMLEditor
-4.html>
-Prachi
_______________________________________________
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