• 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: Delegate's methods of NSTextFields aren't called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delegate's methods of NSTextFields aren't called


  • Subject: Re: Delegate's methods of NSTextFields aren't called
  • From: Justin Lundy <email@hidden>
  • Date: Sat, 29 Mar 2003 07:50:58 -0800

Actually, you have to use NSControl's delegate methods

- (void) controlTextDidEndEditing: (NSNotification *) aNotification
- (BOOL) control: (NSControl *) control textShouldBeginEditing: (NSText
*) fieldEditor

in your delegate. If you re-read NSTextField's documentation:

This posting causes the receiver's delegate to receive a
controlTextDidEndEditing: message.

- Justin

On Saturday, March 29, 2003, at 06:23 AM, Giovanni Donelli wrote:

> Hello Gurus,
> I have two NSTextFields on a NSDrawer and I would like to make some
> operation after the field was edited...
> so I made my controller object to be a delegate for NSTextFields but
> these methods aren't called:
>
> - (void)textDidChange:(NSNotification *)aNotification
> - (void)textDidEndEditing:(NSNotification *)aNotification
>
> is there anyone who had the same problem and know how to make it works?
>
> thanks!
>
> Giovanni
> _______________________________________________
> 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: Delegate's methods of NSTextFields aren't called
      • From: Giovanni Donelli <email@hidden>
References: 
 >Delegate's methods of NSTextFields aren't called (From: Giovanni Donelli <email@hidden>)

  • Prev by Date: Re: anObject? editing cell in NSTableView
  • Next by Date: Re: Delegate's methods of NSTextFields aren't called
  • Previous by thread: Delegate's methods of NSTextFields aren't called
  • Next by thread: Re: Delegate's methods of NSTextFields aren't called
  • Index(es):
    • Date
    • Thread