Re: [Q] How do I Create an NSEvent Using Runtime Functions?
Re: [Q] How do I Create an NSEvent Using Runtime Functions?
- Subject: Re: [Q] How do I Create an NSEvent Using Runtime Functions?
- From: Maurice Volaski <email@hidden>
- Date: Fri, 16 May 2003 22:46:08 -0400
on 5/16/03 13:36, Clark S. Cox III at email@hidden wrote:
>
On Friday, May 16, 2003, at 13:04 US/Eastern, Maurice Volaski wrote:
>
>
> I would like to create an NSEvent object in a plain C program by using
>
> objc_msgSend to send the class method keyEventWithType, but I am
>
> getting
>
> back "selector not recognized".
>
>
How are you getting the selector? If you're just passing in a C
By name using CFSTR, but that's irrelevant because I enumerated the methods
and there is simply no create method (keyEventWithType, mouseEventWithType,
enterExitEventWithType, otherEventWithType) associated with NSEvent:
_eventRelativeToWindow: 0x93147ed4
_cgsEventTime 0x9315d600
_nxeventTime 0x9328ab80
initWithCoder: 0x9328b65c
encodeWithCoder: 0x9328b1dc
dealloc 0x930ad1c4
isEqual: 0x930a96d4
copy 0x9328ae20
copyWithZone: 0x9328ad3c
description 0x9328ae94
_eventRef 0x931480c0
data2 0x9316cac4
data1 0x9316a320
subtype 0x9312d338
userData 0x9316be34
trackingNumber 0x9316bcb8
keyCode 0x9328bad0
isARepeat 0x9328ba00
_postAtStart: 0x931085d4
_postFromSubthread: 0x9328ab88
_setEventRef: 0x931e8030
_isDeadkey 0x931543cc
charactersIgnoringModifiers 0x93119bec
characters 0x931043a0
tabletEvent 0x9328bad8
deltaZ 0x9328ae78
deltaX 0x9328ae30
deltaY 0x9328ae54
_eventRecordDelta: 0x9328aa08
buttonNumber 0x9328acd4
pressure 0x931a3ba8
clickCount 0x93147d48
eventNumber 0x931831ec
context 0x9328ad34
windowNumber 0x93100eec
window 0x93123ef0
timestamp 0x93138de8
modifierFlags 0x930db998
locationInWindow 0x930e4038
type 0x930bdd3c
_cgsevent 0x9311a438
_cgsEventRecord 0x930ffdf8
_initWithCGSEvent:eventRef: 0x930a4940
_fixCommandAlphaShifts 0x9328aad0
--
Maurice Volaski, Flux Software email@hidden
http://www.fluxsoft.com/ ftp://ftp.fluxsoft.com
_______________________________________________
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.