Now it crashes!
[ITFoundation.git] / ITAppleEventCenter.h
1 /*
2  *      ITFoundation
3  *      ITAppleEventCenter
4  *        A class for sending and recieving AppleEvent data.
5  *        Who wants to mess with that Carbon shit anyway?
6  *
7  *      Original Author : Joseph Spiros <joseph.spiros@ithinksw.com>
8  *   Responsibility : Matt Judy <mjudy@ithinksw.com>
9  *   Responsibility : Joseph Spiros <joseph.spiros@ithinksw.com>
10  *
11  *      Copyright (c) 2002 - 2003 iThink Software.
12  *      All Rights Reserved
13  *
14  */
15
16 #import <Foundation/Foundation.h>
17 #import <Carbon/Carbon.h>
18
19
20 @interface ITAppleEventCenter : NSObject {
21     AEIdleUPP idleUPP;
22 }
23 + (id)sharedCenter;
24 - (NSString*)sendAEWithRequestedKey:(NSString*)key eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
25 - (long)sendAEWithRequestedKeyForNumber:(NSString*)key eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
26 - (AEArrayDataPointer)sendAEWithRequestedKeyForArray:(NSString*)key eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
27
28
29 - (NSString*)sendTwoTierAEWithRequestedKey:(NSString*)key fromObjectByKey:(NSString*)object eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
30 - (long)sendTwoTierAEWithRequestedKeyForNumber:(NSString*)key fromObjectByKey:(NSString*)object eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
31
32 - (NSString *)sendAEWithRequestedArray:(NSArray *)array eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
33 - (void)sendAEWithEventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
34
35 - (NSString*)sendAEWithSendString:(NSString*)nssendString eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
36 - (long)sendAEWithSendStringForNumber:(NSString*)string eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
37 - (AEArrayDataPointer)sendAEWithSendStringForArray:(NSString*)string eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn;
38
39 - (void)printCarbonDesc:(AEDesc*)desc;
40 @end