makeKeyAndOrderFront not working
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