• 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: 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.


  • 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>)
 >Re: Find panel (From: Glenn Andreas <email@hidden>)

  • Prev by Date: Re: Problem with custom control in NSToolbar
  • Next by Date: Re: Find panel
  • Previous by thread: Re: Find panel
  • Next by thread: Re: Find panel
  • Index(es):
    • Date
    • Thread