• 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 has cursor in it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField has cursor in it?


  • Subject: Re: NSTextField has cursor in it?
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Thu, 4 Dec 2003 23:57:33 -0800

Hello...


How about the NSControl method:

- (NSText *)currentEditor
If the receiver is being edited -- that is, it has an NSText object acting as its field editor, and is the first responder of its NSWindow -- this method returns the NSText editor; otherwise, it returns nil.

You could cycle through the NSTextFields, and the one that doesn't return nil is the one currently being edited... Don't know if there is a better option, and regarding the other response AFAIK there is no isFirstResponder method documented as of 10.2.

Hope that helps,

Louis


Is there anyway to tell if a given NSTextField has the cursor in it or not?

Thanks in advance,
jay
_______________________________________________
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: NSTextField has cursor in it?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Automatic format of "time remaining" messages
  • Next by Date: Re: NSTextField has cursor in it?
  • Previous by thread: Re: NSApplication Newbie
  • Next by thread: Re: NSTextField has cursor in it?
  • Index(es):
    • Date
    • Thread