• 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
get a window in front by clicking on a menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get a window in front by clicking on a menu item


  • Subject: get a window in front by clicking on a menu item
  • From: Martin Batholdy <email@hidden>
  • Date: Fri, 5 Jun 2009 18:03:02 +0200

hi!

I have a problem, getting a window in front by clicking a menu item;

In my xcode project I have a menuHandler, which has methods to create a menu, add items to that menu, delete items and so on.

My AppController knows about the menuHandler and creates an instance of it in the awakeFromNib function.
There it tells the menuHandler to create a menu and add items to that menu.



One of that items has the title "open window x".
The method that generates this item in the menuHandler refers to the function "showWindow" inside itself
(setTarget:self).


I have created a window in the Interface Builder and have connected it with an IBOutlet NSWindow variable in the MenuHandler.


But the problem is, that the menu item does not do what it should do (invoke the window).


I know that it gets called, when I click on the item "open window x".
But all calls to the window are just ignored without a message in the log
(like [myWindow makeKeyAndOrderFront:self]; [myWindow orderBack:self]; etc.)



Can someone help me on this?

I have also tried several options for the window in the IB ... no improvement ...
_______________________________________________


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: get a window in front by clicking on a menu item
      • From: Graham Cox <email@hidden>
    • Re: get a window in front by clicking on a menu item
      • From: Andy Lee <email@hidden>
    • Re: get a window in front by clicking on a menu item
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Update bound dictionary based on NSTextFieldCell’s edited value
  • Next by Date: (newbie) help with combining navigation controller and tab bar controller
  • Previous by thread: Update bound dictionary based on NSTextFieldCell’s edited value
  • Next by thread: Re: get a window in front by clicking on a menu item
  • Index(es):
    • Date
    • Thread