• 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
NSResponder action messages not being received correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSResponder action messages not being received correctly


  • Subject: NSResponder action messages not being received correctly
  • From: Jon Nall <email@hidden>
  • Date: Fri, 16 Jul 2010 11:02:02 -0700

I have created a tiny project that consists of an NSWindowController
subclass which opens its window during the app delegate's
applicationDidFinishLaunching: method. There are no custom NSWindow or
NSView subclasses.

I'm trying to override various NSResponder action messages. Some work,
some don't.

My window controller has the methods below. I am on a Macbook Pro
keyboard. I see the following behavior:

If I press the LeftArrow, I see LEFT on the console. So far so good.
If I press Fn-UpArrow (PgUp), I see PGUP on the console. Still ok.
If I press Fn-Ctrl-UpArrow (Ctrl-PgUp), I see PGUP on the console.
This is a problem. I expected to see S_PGUP get printed.

I've tried this on 2 computers and don't believe there are any custom
keybindings in effect. I also double checked this with the Keyboard
Shortcuts control panel item.

While I give the example for scrollPageUp:, others are affected too
(e.g.scrollToBeginningOfDocument:)

Does anyone have insight as to what might be going on?

Thanks,
nall.

-(IBAction)moveLeft:(id)sender
{
    NSLog(@"LEFT");
}

-(IBAction)scrollPageUp:(id)sender
{
    NSLog(@"S_PGUP");
}

-(IBAction)pageUp:(id)sender
{
    NSLog(@"PGUP");
}
_______________________________________________

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

  • Prev by Date: [moderator] Re: Flipping coordinate system of a CALayer
  • Next by Date: Re: modal loops & memory
  • Previous by thread: Pin entry box
  • Next by thread: NSStream Questions
  • Index(es):
    • Date
    • Thread