Re: Find Panel in TextView
Re: Find Panel in TextView
- Subject: Re: Find Panel in TextView
- From: Andreas Mayer <email@hidden>
- Date: Mon, 3 May 2004 22:35:05 +0200
Am 03.05.2004 um 21:10 schrieb Andy Lee:
The Find Panel isn't a system-supplied thing like the pasteboard.
Actually, it is. From the Panther Release Notes:
"We now have a standard find panel, usable by NSTextView. The following
two methods in NSTextView allow enabling/disabling the standard find
panel:
- (void)setUsesFindPanel:(BOOL)flag;
- (BOOL)usesFindPanel;
By default newly created NSTextViews in IB have this attribute set,
but for compatibility reasons programmatically created or already
archived instances do not.
The following method is the generic action method for the find panel
and find menu:
- (void)performFindPanelAction:(id)sender;
This is added to NSTextView, and can be overridden by views which want
to provide their own find panel. The actual operation is determined by
the tag values such as NSFindPanelActionNext, etc; see the enum
NSFindPanelAction.
In 10.3 the find panel is meant for NSTextView use only, as there are
no methods to provide the degree of reusability that would be needed
for other clients to hook up to it."
Andreas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.