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

Re: One-line TextViews


  • Subject: Re: One-line TextViews
  • From: matt neuburg <email@hidden>
  • Date: Sun, 16 May 2004 07:14:42 -0700

On Sat, 15 May 2004 19:48:55 -0500, Scott Thompson <email@hidden> said:
>>> Does such a mechanism exist?
>>
>> When user leaves your NSTextField, it sends its Action message.
>> Alternatively, override become... and resignFirstResponder. m.
>
>It's not the text fields that are the problem. The trouble is being
>notified when the text views gain the key focus. I'll just create a
>subclass of NSTextView and override the responder messages, I guess.

But watch out for the interaction with the field editor. The NSTextView
gains and loses first responder status in a tricky way because it hands that
status over to the field editor. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.


  • Prev by Date: Re: Recuperating after NS_HANDLER
  • Next by Date: Re: window rotation
  • Previous by thread: Re: One-line TextViews
  • Next by thread: Automate MS PowerPoint X using cocoa?
  • Index(es):
    • Date
    • Thread