• 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: Pax <email@hidden>
  • Date: Sun, 14 Apr 2013 17:33:25 +0100

I want my window to come to the front when I select it.  My window (with its own class to handle it), sadly, has other ideas - and stays resolutely in the background.  Complicating matters, my app is faceless - just a menu item to show for itself, and no icon in the dock.  The code I'm having problems with is as follows:

-(void) configureWindow:(id)owner
{
    [self showWindow:owner];
    [infoWindow cascadeTopLeftFromPoint:NSMakePoint(20,20)];
    [infoWindow makeKeyAndOrderFront:owner];
}

configureWindow is called as follows (from AppDelegate.m):
[[device objectForKey:@"InformationWindowRef"] configureWindow:self];

And the info.plist for the app contains:
Application is agent (UIElement) YES

Given enough time, I may well crack this - but if anyone has a clever idea for where I've gone wrong then I'd love to hear it.

_______________________________________________

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: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Is there a pattern for creating an object with global scope?
  • Next by Date: Re: Followup - Re: Is there a pattern for creating an object with global scope?
  • Previous by thread: Re: get return value from NSUserUnixTask
  • Next by thread: Re: makeKeyAndOrderFront (not working)
  • Index(es):
    • Date
    • Thread