• 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 focus in contextual menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextfield focus in contextual menu


  • Subject: Re: NSTextfield focus in contextual menu
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 17 Jan 2013 18:48:29 -0800

On Thu, Jan 17, 2013, at 12:07 PM, Tamas Nagy wrote:
> Well, I came up with a solution. I subclassed NSTextfield with
>
> -(void)viewDidMoveToWindow {
>
>     [self selectText:self];
> }
>
> and no it works as expected. When the menu pops out, the focus is on the
> textfield.

Glad it works, but don't forget to call super here.

Also, please file a bug asking for a true view-based menu implementation
so that such user interfaces are more reliable in future operating
systems. Without bugs, the Apple folks can't know who's trying to push
the system in certain directions.

--Kyle Sluder
_______________________________________________

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 focus in contextual menu (From: Tamas Nagy <email@hidden>)
 >Re: NSTextfield focus in contextual menu (From: Kyle Sluder <email@hidden>)
 >Re: NSTextfield focus in contextual menu (From: Tamas Nagy <email@hidden>)

  • Prev by Date: Issue with Core Data Mapping Model
  • Next by Date: constructor for 'E' must explicitly initialize the base class 'C' which does not have a default constructor
  • Previous by thread: Re: NSTextfield focus in contextual menu
  • Next by thread: Using NSSavePanel to export to UTTypeFolder without a file extension.
  • Index(es):
    • Date
    • Thread