CreateEvent and Cocoa
CreateEvent and Cocoa
- Subject: CreateEvent and Cocoa
- From: stefano iacus <email@hidden>
- Date: Tue, 21 Sep 2004 00:33:29 +0200
Hi,
Is there an equivalent way to create custom events in cocoa containing
bytes?
I was using this piece of code in Carbon but I don't know how to do the
same task in Cocoa
EventRef ReadEvent;
CreateEvent(NULL, kEventClassRead, kEventRead, 0,
kEventAttributeNone, &ReadEvent);
SetEventParameter(ReadEvent, kEventParamRead, typeChar, len,
some_c_string);
SendEventToEventTarget(ReadEvent,
GetWindowEventTarget(myWindow));
I need to send this event to my application, same thread, etc.
The NSEvent method
otherEventWithType:location:modifierFlags:timestamp:windowNumber:
context:subtype:data1:data2:
does not seem to be useful as I cannot send bytes.
Any idea?
stefano
_______________________________________________
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