Re: How to activate Find and Replace for Textview?
Re: How to activate Find and Replace for Textview?
- Subject: Re: How to activate Find and Replace for Textview?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 28 May 2009 13:03:19 -0700
On Thu, May 28, 2009 at 12:11 PM, archana udupa <email@hidden> wrote:
> Thanks in advance for those who can help me..:)I have subclass of
> textview. I want to add find and replace menu items.How can i do that?
Look at the default Edit:Find:Find… menu item. It's wired up to First
Responder's -performFindPanelAction: method. The documentation for
this (NSTextView) method describes how it works. Basically, when you
send an NSTextView -performFindPanelAction:, it asks the sender for
its tag. This tag must be one of the NSFindPanelAction constants
(listed in the documentation), and its value determines what the text
view does.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden