• 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
NSFindPboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFindPboard


  • Subject: NSFindPboard
  • From: carsten Schäfer <email@hidden>
  • Date: Mon, 21 Aug 2006 13:56:57 +0200

Hello everybody,

I have an application with a search field. These field feeds the SearchKit with an query, which works quite fine. After the search has been performed it should be possible to use the same query in a custom NSTextView with the default find panel. For that purpose I copy the query (a NSString) to the NSFindPboard to automatically feed the find panel with the string:

NSPasteboard *findPB = nil;
if(findPB = [NSPasteboard pasteboardWithName: NSFindPboard])
{
[findPB declareTypes: [NSArray arrayWithObject: NSStringPboardType] owner: nil];
[findPB setString: searchQuery forType: NSStringPboardType];
}


But this only works when switching to another application and then switch back to my own one. Otherwise the find panel only keeps the first search query. So interapplication find string sharing works quite find but that's not what is needed. I need the query provided multiple times within the same application. How can this be done?



Thanks in advance,
Carsten

_______________________________________________
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


  • Prev by Date: Re: Which approach is the best one
  • Next by Date: Colorizing a bitmap
  • Previous by thread: Re: Which approach is the best one
  • Next by thread: Colorizing a bitmap
  • Index(es):
    • Date
    • Thread