• 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: When does -[NSWindow sendEvent:] beep?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When does -[NSWindow sendEvent:] beep?


  • Subject: Re: When does -[NSWindow sendEvent:] beep?
  • From: David Catmull <email@hidden>
  • Date: Tue, 20 Feb 2007 15:13:13 -0800

On Feb 20, 2007, at 3:01 PM, Joar Wingfors wrote:
You might want to have a look at the functionality provided by CGRemoteOperation.h for this type of work.

I did, and the API isn't as friendly.

Are you sure that the NSStrings are created correctly?

Yes. I originally used stringWithFormat, which didn't work, and I finally settled on ASCII, which works with regular text. The fact that (as I just recently discovered) NSWindow is calling moveUp on my view indicates that at least this much is working. The question is, why does it do that for my fake events, when it calls keyDown for real events?


Have you tried something like this?

	unichar key = NSUpArrowFunctionKey;
	NSString *keyStr = [NSString stringWithCharacters: &key length: 1];

Yes. I got the same results.

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >When does -[NSWindow sendEvent:] beep? (From: David Catmull <email@hidden>)
 >Re: When does -[NSWindow sendEvent:] beep? (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: When does -[NSWindow sendEvent:] beep?
  • Next by Date: Re: class variables
  • Previous by thread: Re: When does -[NSWindow sendEvent:] beep?
  • Next by thread: Re: When does -[NSWindow sendEvent:] beep?
  • Index(es):
    • Date
    • Thread