• 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
CreateEvent and Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Problems cropping an NSImage
  • Next by Date: Re: Select a NSBezierPath
  • Previous by thread: Problems cropping an NSImage
  • Next by thread: Cocoa Application (and JAVA Bridge) Compile Error with JAM "Missing file or directory"
  • Index(es):
    • Date
    • Thread