Re: Find panel
Re: Find panel
- Subject: Re: Find panel
- From: Glenn Andreas <email@hidden>
- Date: Sun, 01 Aug 2004 16:25:35 -0500
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.