• 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 does not lose focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField does not lose focus


  • Subject: Re: NSTextField does not lose focus
  • From: Robert Cerny <email@hidden>
  • Date: Thu, 22 May 2008 12:50:50 +0200


On 22.5.2008, at 11:15, Torsten Curdt wrote:

I've got a NSTextField (on a NSTabView). I open the window. I click the text field and enter some text. Now I click on a button next to it.

The value has still not been "committed" and it still has the cursor.

Then I click outside of the text field (just somewhere in the view) and still the NSTextField does not lose it's focus.

What's going on? I looked through options in IB3. What do I need to read up on?

cheers
--
Torsten

Hey Torsten,
it's the way how GUI works on OSX. Hitting button doesn't steal focus from text field, nor clicking in window. You can test this behaviour without any code, just inside IB.


1. Start IB
2. Choose Cocoa Window template
3. Drag text field and button into window
4. HIt -R to start Simulator

HTH
Robert_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTextField does not lose focus (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: File integrity
  • Next by Date: NSWindow in main nib.
  • Previous by thread: NSTextField does not lose focus
  • Next by thread: Re: NSTextField does not lose focus
  • Index(es):
    • Date
    • Thread