• 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
Connecting NSSearchField to it's handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Connecting NSSearchField to it's handler


  • Subject: Connecting NSSearchField to it's handler
  • From: Ken Tozier <email@hidden>
  • Date: Mon, 6 Aug 2007 22:24:55 -0400

Hi

I wrote a NSWindowController subclass that has a method to handle actions from its NSSearchField and can't figure out how to tell the search field to send actions to this method in IB. It's trivial to do it in the NSWindowController's awake from nib method, took 5 minutes to figure it out.

- (void) awakeFromNib
{
	[searchField setAction: @selector(handleSearch:)];
	[searchField setTarget: self];
}

By contrast, after almost two hours of Googling and looking at example projects, reading up on bindings etc, I can't figure out how to do it in IB.

Any pointers appreciated

Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Problem with PDFDocument initWithURL method
  • Next by Date: Cocoa program can you beta test it for me?
  • Previous by thread: Re: Problem with PDFDocument initWithURL method
  • Next by thread: Re: Connecting NSSearchField to it's handler
  • Index(es):
    • Date
    • Thread