• 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: Keyboard Events in Modal NSWindow (Part 2)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyboard Events in Modal NSWindow (Part 2)


  • Subject: Re: Keyboard Events in Modal NSWindow (Part 2)
  • From: Jason Barker <email@hidden>
  • Date: Sat, 22 Apr 2006 16:02:14 -0600


On Apr 22, 2006, at 9:27 AM, Jason Barker wrote:

I have a document-based application with a modal window. I want to handle keyboard events with my modal window (which has a delegate). How can I do this? Do I have to use a subclass of NSWindowManager? What is the best route? I will have a few sheets associated with this modal window. Any suggestions?


Thanks, Jason

(Newbie frustrations...)

I've accomplished what I wanted to do but I'm sure that any seasoned Cocoa/Objective-C developer will roll their eyes at this. I took a NSButton from the controls palette in IB, put it on the layout of my modal window, and created a command-keystroke combo for it. Now, my modal window allows me to type command-Equals, which is linked to an action. So that I can learn how it should be done, can anyone tell me how I should have accomplished this?


Jason

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Keyboard Events in Modal NSWindow (Part 2)
      • From: Shawn Erickson <email@hidden>
References: 
 >Keyboard Events in Modal NSWindow (From: Jason Barker <email@hidden>)

  • Prev by Date: Re: CoreData questions (data sources and file wrappers)
  • Next by Date: NSUndoManager and undo history
  • Previous by thread: Keyboard Events in Modal NSWindow
  • Next by thread: Re: Keyboard Events in Modal NSWindow (Part 2)
  • Index(es):
    • Date
    • Thread