Re: Find panel
Re: Find panel
- Subject: Re: Find panel
- From: Ivan Myrvold <email@hidden>
- Date: Sun, 1 Aug 2004 22:58:24 +0200
I tried the following in the NSSearchField action method:
NSPasteboard *pb = [NSPasteboard pasteboardWithName:NSFindPboard];
[pb setString:[sender stringValue] forType:NSStringPboardType];
But when I bring up the Find panel, I find the old search string in the
find field, and not what I set the find pasteboard to. I must be
missing something here. And I don't see what the
performFindPanelAction: have to do with the search string.
Ivan
Pe 1. aug. 2004 kl. 19.32 skrev Fritz Anderson:
>
Look into -[NSTextView performFindPanelAction:] (10.3 and later), also
>
the find pasteboard, [NSPasteboard pasteboardWithName: NSFindPboard].
>
>
-- F
>
>
On 1 Aug 2004, at 9:07 AM, Ivan Myrvold wrote:
>
>
> How do I programmatically set the find string in the find panel for a
>
> document-based application? (Same as when a user selects command-E).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.