Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField does not lose focus




On May 22, 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?

Got it ...I had to set the firstResponder to nil in the IBAction before I access the text field


    [[self window] makeFirstResponder: nil];

cheers
--
Torsten
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.