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

Re: NSTextField


  • Subject: Re: NSTextField
  • From: email@hidden
  • Date: Thu, 20 Mar 2003 09:39:13 +0100

On mercredi, mars 19, 2003, at 10:46 PM, email@hidden wrote:

Why can't I get the - (BOOL)textShouldEndEditing:(NSText *)textObject;
delegate to work for NSTextField.

I've created a simple subclass of NSObject that has the one method.
Read this into the .nib file and instantiated it. Then I connected
the text field's delegate to the new object.

Run the test app and type some stuff into the field and switch out of
the field. Nothing happens. I've even tried using the debugger and
putting a break point in there and nothing happens.

Use - (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor; instead.


- (BOOL)textShouldEndEditing:(NSText *)textObject; is sent to the NSTextField itself by the NSTextFieldCell.
_______________________________________________
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: 
 >NSTextField (From: email@hidden)

  • Prev by Date: Re: Inactive notification
  • Next by Date: [Newbie] How to load and display a sheet from a NIB file ?
  • Previous by thread: NSTextField
  • Next by thread: Re: [M-dev]Programming language
  • Index(es):
    • Date
    • Thread