Re: Find panel
Re: Find panel
- Subject: Re: Find panel
- From: Ivan Myrvold <email@hidden>
- Date: Mon, 2 Aug 2004 06:58:42 +0200
This works for the first search string I type in the NSSearchField. The
next search string I type in, is not used. Instead, the find panel
contains the first search string in the find field.
Ivan
Pe 1. aug. 2004 kl. 23.25 skrev Glenn Andreas:
On Sunday, August 01, 2004, at 04:02PM, Ivan Myrvold
<email@hidden> wrote:
I tried the following in the NSSearchField action method:
NSPasteboard *pb = [NSPasteboard pasteboardWithName:NSFindPboard];
[pb setString:[sender stringValue] forType:NSStringPboardType];
In IDEKit, I do:
NSPasteboard *pasteboard = [NSPasteboard
pasteboardWithName:NSFindPboard];
[pasteboard declareTypes:[NSArray
arrayWithObject:NSStringPboardType] owner:nil];
[pasteboard setString:[self findString]
forType:NSStringPboardType];
and it seems to work correctly - I'm guessing just adding the
declareTypes:owner: should do it...
_______________________________________________
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.
_______________________________________________
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.