NSAppleEventManager.inc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. { Parsed from Foundation.framework NSAppleEventManager.h }
  2. {$ifdef TYPES}
  3. type
  4. NSAppleEventManagerPtr = ^NSAppleEventManager;
  5. {$endif}
  6. {$ifdef TYPES}
  7. type
  8. NSAppleEventManagerSuspensionID = OpaqueType;
  9. {$endif}
  10. {$ifdef EXTERNAL_SYMBOLS}
  11. var
  12. NSAppleEventTimeOutDefault: double; cvar; external;
  13. NSAppleEventTimeOutNone: double; cvar; external;
  14. NSAppleEventManagerWillProcessFirstEventNotification: NSString; cvar; external;
  15. {$endif}
  16. {$ifdef CLASSES}
  17. type
  18. NSAppleEventManager = objcclass external (NSObject)
  19. private
  20. _isPreparedForDispatch: ObjCBOOL;
  21. _padding:array[0..2] of char;
  22. public
  23. class function sharedAppleEventManager: NSAppleEventManager; message 'sharedAppleEventManager';
  24. procedure setEventHandler_andSelector_forEventClass_andEventID (handler: id; handleEventSelector: SEL; eventClass: AEEventClass; eventID: AEEventID); message 'setEventHandler:andSelector:forEventClass:andEventID:';
  25. procedure removeEventHandlerForEventClass_andEventID (eventClass: AEEventClass; eventID: AEEventID); message 'removeEventHandlerForEventClass:andEventID:';
  26. function dispatchRawAppleEvent_withRawReply_handlerRefCon (theAppleEvent: AppleEventPtr; theReply: AppleEventPtr; handlerRefCon: SRefCon): OSErr; message 'dispatchRawAppleEvent:withRawReply:handlerRefCon:';
  27. function currentAppleEvent: NSAppleEventDescriptor; message 'currentAppleEvent';
  28. function currentReplyAppleEvent: NSAppleEventDescriptor; message 'currentReplyAppleEvent';
  29. function suspendCurrentAppleEvent: NSAppleEventManagerSuspensionID; message 'suspendCurrentAppleEvent';
  30. function appleEventForSuspensionID (suspensionID: NSAppleEventManagerSuspensionID): NSAppleEventDescriptor; message 'appleEventForSuspensionID:';
  31. function replyAppleEventForSuspensionID (suspensionID: NSAppleEventManagerSuspensionID): NSAppleEventDescriptor; message 'replyAppleEventForSuspensionID:';
  32. procedure setCurrentAppleEventAndReplyEventWithSuspensionID (suspensionID: NSAppleEventManagerSuspensionID); message 'setCurrentAppleEventAndReplyEventWithSuspensionID:';
  33. procedure resumeWithSuspensionID (suspensionID: NSAppleEventManagerSuspensionID); message 'resumeWithSuspensionID:';
  34. end;
  35. {$endif}