Repository navigation
Deliver launch and other Apple events as Classic high-level events - #47
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Continues section 4 of the BlueBox requirements. Apple events now reach a Classic program as high-level events through
EventAvail,GetNextEventandWaitNextEvent, andAEProcessAppleEventhands them to the guest-handler delivery from #46. The queue behaviour is checked against Mac OS 9.2.2.Mac OS 9.2.2 capture
ReferenceTests/Retro68/HighLevelEventCapture.c, with a SIZE resource that makes it aware of high-level events, ran under UTM. It sends events to its own PSN so that they go through its queue. Its output isHighLevelEvents-macos-9.2.2-ppc.txt.oapparrives as kind 23, with the class inmessageand the ID inwhere(high half inv).FlushEvents: it neither removes a high-level event nor stops at one, even withhighLevelEventMaskas the stop mask.AEProcessAppleEvent: with two events retrieved and unprocessed, it delivers the second and the first is gone.noOutstandingHLE(-608).Changes
ClassicEventQueue: high-level events stay apart from the low-level queue. They are retrieved in order only when no low-level event matches, andFlushEventsskips them. Tagged posting (post(_:tag:),contains(tag:)) lets a poster tell whether an event was retrieved.AppleEventInbox(new, GraphiteAutomation): queues Apple events as high-levelEventRecords.postLaunchqueuesoapp; with documentsodoc; for printingpdocthenquit.take/processimplementAEProcessAppleEventas captured, starting a delivery withbeginDelivery.MacError.noOutstandingHighLevelEvent(-608).For reviewers
EventTests.classicHighLevelEventMaskexpectedFlushEventsto stop at a high-level event. That part moved intoclassicHighLevelEventsStayApart, which follows the capture.0x0400, and kinds 16–22 match nothing.pdocfollowed byquitfollows Apple's Finder documentation; the probe only sawoapp.Tests
AppleEventInboxTestsandEventTests.classicHighLevelEventsStayApartare new. The full suite passes.