On Thu, May 28, 2009 at 12:11 PM, archana udupa <udupachu...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com