• 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: Setting focus to text field in drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting focus to text field in drawer


  • Subject: Re: Setting focus to text field in drawer
  • From: Arthur Clemens <email@hidden>
  • Date: Mon, 11 Aug 2003 08:24:15 +0200

On maandag, augustus 11, 2003, at 05:55 AM, publiclook wrote:


On Sunday, August 10, 2003, at 09:06 PM, Seth Willits wrote:

On Sunday, August 10, 2003, at 05:53 PM, publiclook wrote:

How about

[[_searchField window] makeKeyAndOrderFront:nil];

Will that work? I suppose it might, but since NSDrawer isn't a window I figured you couldn't do it that way. Cool if it works!

Anything that is drawn on screen via Cocoa is drawn in a window. That is how Cocoa and Quartz work. Further, all views including controls have a pointer to the window that contains them. The -window method returns the window that contains the view.

- (NSWindow *)window
Returns the receivers window object, or nil if it has none.

See Also:  superview


Except that it does not work in my application.

Arthur Clemens
_______________________________________________
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.

References: 
 >Re: Setting focus to text field in drawer (From: publiclook <email@hidden>)

  • Prev by Date: Re: Setting focus to text field in drawer
  • Next by Date: Re: Application termination
  • Previous by thread: Re: Setting focus to text field in drawer
  • Next by thread: Re: Setting focus to text field in drawer
  • Index(es):
    • Date
    • Thread