• 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
Re: Find panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Find panel
      • From: Ivan Myrvold <email@hidden>
References: 
 >Find panel (From: Ivan Myrvold <email@hidden>)
 >Re: Find panel (From: Fritz Anderson <email@hidden>)
 >Re: Find panel (From: Ivan Myrvold <email@hidden>)

  • Prev by Date: Re: Find panel
  • Next by Date: Re: Categories and adding instance variables
  • Previous by thread: Re: Find panel
  • Next by thread: Re: Find panel
  • Index(es):
    • Date
    • Thread