• 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
Re: Hiding find panel in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding find panel in NSTextView


  • Subject: Re: Hiding find panel in NSTextView
  • From: Buddy Kurz <email@hidden>
  • Date: Thu, 4 May 2006 12:48:13 -0700

Experimentation has shown that when iterating thru the windows for the application using [NSApp windows] any of the three following expressions will be true for the find panel:

		 (  [[window delegate] respondsToSelector:@selector(findPanel:)])
		 ([[[[window delegate] class] description] isEqualTo:@"NSTextFinder"])
		 (  [[window title] isEqualTo:@"Find"])

Since NSTextFinder and its delegate relationship to the find panel are undocumented, this seems like a poor solution.
Testing the window title also seems less than reliable.


Any comments would be appreciated.


On May 4, 2006, at 8:58 AM, Buddy Kurz wrote:


Since this:

[textView  performFindPanelAction: NSFindPanelActionHideFindPanel]

or

[textView findPanel]

or

[NSFindPanel defaultFindPanel]

don't appear to exist and

[textView setUsesFindPanel:NO]

doesn't hide an existing panel, is there any way short of implementing my own find panel to hide the find panel that comes with NSTextView.
I can't seem to find any method to access the panel itself.


I am swapping the content view of a window and would like the find panel to go away when the content view that contains the text view is removed from the window.


_______________________________________________ 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

_______________________________________________ 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
References: 
 >Hiding find panel in NSTextView (From: Buddy Kurz <email@hidden>)

  • Prev by Date: Re: NSString intValue
  • Next by Date: Whitespace
  • Previous by thread: Hiding find panel in NSTextView
  • Next by thread: Expanding a window and adding controlls dynammicaly.
  • Index(es):
    • Date
    • Thread