NSFindPboard
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