• 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
NSTextField in a sheet and focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField in a sheet and focus


  • Subject: NSTextField in a sheet and focus
  • From: "Mike Chambers" <email@hidden>
  • Date: Tue, 9 Dec 2008 11:25:54 -0800

I have a sheet which contains an NSTextField. I need to allow users to
enter line returns in the textfield, so I have implemented the
functionality according to this apple note:

http://developer.apple.com/qa/qa2006/qa1454.html

This works great. However, if the user clicks out of the text field
(onto the sheet, or another control), the textfield does not loose
focus. The only way that it will loose focus is if another textfield
is selected in the sheet.

The problem is that, if the user gives the textfield focus, then they
can no longer hit the return key to submit / accept the sheet (return
is set as the sheets OK button key equivalent).

Has anyone run into this before? If the textfield would loose focus
when the user clicks out of it, I would not have a problem. I looked
at NSTextView, but it also has the same focus issues.

Anyone have any thoughts on possible solutions?

mike
_______________________________________________

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

  • Prev by Date: NSArrayController with a base class
  • Next by Date: Re: Development workflows for signed code?
  • Previous by thread: Re: NSArrayController with a base class
  • Next by thread: NSTextField + Drag'n'Drop
  • Index(es):
    • Date
    • Thread