Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64-bit Carbon



On 2007-06-14, at 21:58:35, Eric Schlegel wrote:

I started to apply the technique from the now withdrawn QA1061 and it appears that it's grabbing the same events. Just like in the example I'd want to start and stop the event loop but instead of Carbon RAEL, maybe the methods 'run', and 'stop' from NSApplication. Do you think that would be viable? Or am I barking up the wrong tree? I'm willing to do a lot so I can take advantage of the much more elegant Carbon implementation.

MattD sent me a copy of this Q&A and I see it's referring to using cooperative threads with RAEL. Unfortunately I'm not sure I can comment with any authority about using this technique with Cocoa, since I'm not really familiar with the details of how NSApplication runs its event loop or whether the run and stop messages would give the right results. Just offhand, I think you'd need to translate the ReceiveNextEvent call into a call to [NSApplication nextEventMatchingMask].

Thanks Eric,

I'll read up on nextEventMatchingMask. What I want to do is have the master controller be in Carbon and then parcel out the events as I see fit. So of course my analogy is from Carbon thinking and the NSApplication run and stop methods might not be applicable.

If I'm not mistaken, the 'cgs ' events from ReceiveNextEvent() are the lowest normally seen at this level and bounced back into higher calls when not handled, and they should be translatable into an NSEvent.


Philip Aker email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: 64-bit Carbon (From: Brad Oliver <email@hidden>)
 >Re: 64-bit Carbon (From: Eric Schlegel <email@hidden>)
 >Re: 64-bit Carbon (From: Philip Aker <email@hidden>)
 >Re: 64-bit Carbon (From: Eric Schlegel <email@hidden>)
 >Re: 64-bit Carbon (From: Philip Aker <email@hidden>)
 >Re: 64-bit Carbon (From: Eric Schlegel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.