• 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: newbie notification question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie notification question.


  • Subject: Re: newbie notification question.
  • From: "Michael P. Rogers" <email@hidden>
  • Date: Thu, 28 Mar 2002 20:07:31 -0600

I spent a couple of hours trying to setup an object class to catch a notifcation from an NSTextField.

In the controller class I have the following code:

- (void) awakeFromNib
{
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(controlTextDidChange:)
name:@"NSControlTextDidChange" object:nil];
}


Try doing this instead:

1) In your controller instance, define the controlTextdidChange method
2) Drag a connection from the NSTextField to your controller instance, and making it a delegate for the NSTextField

That ought to work.

Michael
--
Dr. Michael P. Rogers
Office: 203G Shilling Hall
Phone: 217-424-6327 (W) 309-828-8655 (H) 309-825-6454 (C)
E-Mail: email@hidden

Web site: http://math.millikin.edu/
Astronomy Site: http://twincityamateurastronomers.org
_______________________________________________
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.

References: 
 >newbie notification question. (From: Greg Jackson <email@hidden>)

  • Prev by Date: Re: coco for ms windows
  • Next by Date: Re: coco for Ms Windows ??
  • Previous by thread: Re: newbie notification question.
  • Next by thread: Re: newbie notification question.
  • Index(es):
    • Date
    • Thread