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

Re: get a window in front by clicking on a menu item


  • Subject: Re: get a window in front by clicking on a menu item
  • From: Andy Lee <email@hidden>
  • Date: Fri, 05 Jun 2009 14:28:46 -0400

On Jun 5, 2009, at 12:03 PM, Martin Batholdy wrote:
The method that generates this item in the menuHandler refers to the function "showWindow" inside itself
(setTarget:self).

Did you also do setAction:? If so, are you sure you capitalized and spelled the name of the action method correctly, including the colon at the end?


But all calls to the window are just ignored without a message in the log
(like [myWindow makeKeyAndOrderFront:self]; [myWindow orderBack:self]; etc.)

Use the debugger or NSLog to make extra sure myWindow is not nil (in case you made a mistake in the nib file).


Other than that, I'd suggest posting some code.

--Andy


_______________________________________________

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


References: 
 >get a window in front by clicking on a menu item (From: Martin Batholdy <email@hidden>)

  • Prev by Date: Re: How to lock an object?
  • Next by Date: Re: (newbie) help with combining navigation controller and tab bar controller
  • Previous by thread: Re: get a window in front by clicking on a menu item
  • Next by thread: Re: get a window in front by clicking on a menu item
  • Index(es):
    • Date
    • Thread