Hi list,
I just realized (after all these years) the File->Close Window was in
the File menu.  Please ignore my previous post.
wes

On Wed, Sep 3, 2008 at 2:41 PM, Wesley Smith <[EMAIL PROTECTED]> wrote:
> I have an application where I generate a number of the menus from
> scripts and runtime.  Something I noticed when I replace the File menu
> defined in the app's MainMenu.nib is that I can no longer use cmd+w to
> close windows.  I'm not totally sure why this is.  The application
> loads scripts, which can create windows among other things.  When I
> load a script that creates a window, the Window menu shows the title
> of it as usual, but cmd+w create an alert bell type sound indicating
> an invalid action.  My question is how can I set the app up to handle
> cmd+w properly?  I looked at the NSResponder and NSApplications docs
> but didn't see anything helpful.  When I hit cmd+w, my app's
> NSResponder does receive a keyDown event like I thought it might.
> Where do I insert my code to grab this event?
>
> thanks,
> wes
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to