• 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
makeKeyAndOrderFront not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makeKeyAndOrderFront not working


  • Subject: makeKeyAndOrderFront not working
  • From: James Walker <email@hidden>
  • Date: Tue, 14 Feb 2017 13:44:36 -0800

I have a situation where makeKeyAndOrderFront is making a window visible but not key. Just before this call, [theWindow canBecomeKeyWindow] returns YES, and just after, [NSApp keyWindow] returns nil. Clicking on the window title bar does not make it key. However, if I bring some other app to the front and then bring my app back to the front, the window in question finally does become key.

When this problem occurs, [NSApp isActive] returns NO although my app's name is in the menu bar, and doing [NSApp activateIgnoringOtherApps: YES] does not rectify the situation.

This only happens if I have linked against a certain dylib that was built with FireMonkey, not Xcode. I haven't actually called any functions in said dylib. Any idea what nefarious things it might be doing?
_______________________________________________

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: makeKeyAndOrderFront not working
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: No prompt for Location Services
  • Next by Date: Re: Sometimes all my menus are disabled
  • Previous by thread: Re: No prompt for Location Services
  • Next by thread: Re: makeKeyAndOrderFront not working
  • Index(es):
    • Date
    • Thread