keyEventWithType
keyEventWithType
- Subject: keyEventWithType
- From: Steve Mills <email@hidden>
- Date: Sun, 25 Aug 2002 20:35:46 -0500
Howdy. Cocoa and ObjC newbie here. I'm having trouble creating a new
keyboard event:
NSEvent ev = [NSEvent keyEventWithType: NSKeyDown windowNumber: 0
context: [NSGraphicsContext currentContext] modifierFlags: 0 characters: cr
charactersIgnoringModifiers: cr isARepeat: NO keyCode: 27 timestamp:
tv.tv_sec + (tv.tv_usec / 1000000.0) location: pt];
It's a mess because I kept adding parameters in hopes that I could make it
work. When I compile, I get these warnings:
MyWindow.m:28: warning: cannot find class (factory) method.
MyWindow.m:28: warning: return type for
`keyEventWithType:windowNumber:context:modifierFlags:characters:charactersIg
noringModifiers:isARepeat:keyCode:timestamp:location:' defaults to id
When I step over that line while debugging, I get this exception:
selector not recognized
Anybody know what's going on? It almost seems like keyEventWithType isn't
actually implemented yet.
Steve Mills
Drummer, Mac geek Armpit Studios X
http://sjmills5.home.mchsi.com/ Shorewood, MN
______________________________________________________________________
The milestones are out of sync with reality in a positive way.
--David Durkee, co-worker
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.