• 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: Catching events in an empty window.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catching events in an empty window.


  • Subject: Re: Catching events in an empty window.
  • From: Brian Smith <email@hidden>
  • Date: Fri, 3 Aug 2007 20:47:29 -0600


On 3 Aug, 2007, at 6:18 PM, Daniel T. Staal wrote:

	// Show the window.
	[window makeKeyAndOrderFront:self];
	if ( ![window makeFirstResponder:self] ) {
		NSLog(@"Unable to make first responder");
	}


You may need to override canBecomeKeyWindow and canBecomeMainWindow to return YES as the NSWindow's reference document states that these return YES if the window has a titlebar otherwise it returns NO. So, your makeKeyAndOrderFront probably does not make the window key.


Brian
_______________________________________________

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


  • Follow-Ups:
    • Re: Catching events in an empty window.
      • From: Daniel Staal <email@hidden>
References: 
 >Catching events in an empty window. (From: "Daniel T. Staal" <email@hidden>)

  • Prev by Date: Re: Quickest Drawing Method
  • Next by Date: Re: Catching events in an empty window.
  • Previous by thread: Catching events in an empty window.
  • Next by thread: Re: Catching events in an empty window.
  • Index(es):
    • Date
    • Thread