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

Re: resignFirstResponder called immediately


  • Subject: Re: resignFirstResponder called immediately
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Wed, 7 Apr 2004 00:27:09 -0700

Hello....

When a text field is being edited, the shared "field editor" object is used as the first responder, not the text field. Check out the documentation for the NSWindow method fieldEditor:forObject: for more information on this.

Depending on what you are trying to do, you also might want to look at using the delegate methods provided by NSTextField (or the equivalent NSControl delegate methods) instead:

- textShouldBeginEditing:
- textDidBeginEditing:
- textDidChange:
- textShouldEndEditing:
- textDidEndEditing:


Hope that helps,

Louis

...

When I tab into one of these text fields I get both messages:

2004-04-07 00:02:22.712 MyApp[8922] becomeFirstResponder
2004-04-07 00:02:22.740 MyApp[8922] resignFirstResponder

When I tab out, I get no messages.

The panel containing the text field remains key (frontmost).

Can anyone explain this? It looks like I am doing the same thing as
in Anguish et al page 586.

Thanks,

Don
_______________________________________________
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: resignFirstResponder called immediately
      • From: Donald Hall <email@hidden>
References: 
 >resignFirstResponder called immediately (From: Donald Hall <email@hidden>)

  • Prev by Date: resignFirstResponder called immediately
  • Next by Date: Re: [now OT] Licensing/Implementing in Cocoa/Obj-C - Interest in product?
  • Previous by thread: resignFirstResponder called immediately
  • Next by thread: Re: resignFirstResponder called immediately
  • Index(es):
    • Date
    • Thread