Re: get a window in front by clicking on a menu item
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