RE: getting an EventRecord?
RE: getting an EventRecord?
- Subject: RE: getting an EventRecord?
- From: "Matt Pease" <email@hidden>
- Date: Thu, 1 May 2003 10:16:48 +0200
Hi Marcel & all --
I need the event because the fxn I'm calling in my library needs
the event. It was written during the days of events & polling & such.
I believe that calling currentEvent will give me a NSEvent, right?
I know its strange, but I need a EventRecord style event.
Anyone know a way to get an EventRecord directly in Cocoa?
Seems like these are my options?
* use WaitNextEvent to get it directly.
* override sendEvent or call currentEvent & get a NSEvent. But what is
the
best way to convert an NSEvent into a EventRecord?
* some other way?
Thank you -
Matt
>
-----Original Message-----
>
From: Marcel Weiher [mailto:email@hidden]
>
Sent: Thursday, May 01, 2003 10:07 AM
>
To: Matt Pease
>
Cc: Eric Schlegel; email@hidden
>
Subject: Re: getting an EventRecord?
>
>
>
>
On Thursday, May 1, 2003, at 09:48 Uhr, Matt Pease wrote:
>
>
> Oops -- I didn't realize there was a difference.
>
>
>
> I want the same type of event that comes into Powerplant's SpendTime
>
> method. :) The library I'm using was designed to be called
>
> regularly to make the animation move.
>
>
>
> So I need
>
>
>
> * mouse movement events,
>
> * mouse clicks, &
>
> * keyboard presses.
>
> * when there aren't any of those, then I'd need just the
>
> updateEvent,
>
> I'm guessing. Got to keep that animation moving.
>
>
>
Are you sure you actually need an event? Why not use a timer, that's
>
the regular Cocoa mechanism for regularly scheduled events. If you
>
then need event info, you can then ask the application or the current
>
window for its -currentEvent.
>
>
Regards,
>
>
Marcel
>
>
--
>
Marcel Weiher Metaobject Software Technologies
>
email@hidden www.metaobject.com
>
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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.