Permalink
Browse files

initial release

  • Loading branch information...
0 parents commit 670609d6bbcba29d35193eca1957f18f53479a0c acnt2 committed Jul 15, 2005
Showing with 2,861 additions and 0 deletions.
  1. +209 −0 .gdb_history
  2. +13 −0 AEDesc
  3. +81 −0 ETAppleEventObject.h
  4. +632 −0 ETAppleEventObject.m
  5. +48 −0 ETPlaylist.h
  6. +54 −0 ETPlaylist.m
  7. +112 −0 ETTrack.h
  8. +465 −0 ETTrack.m
  9. BIN English.lproj/InfoPlist.strings
  10. +79 −0 EyeTunes.h
  11. +366 −0 EyeTunes.m
  12. +565 −0 EyeTunes.xcodeproj/project.pbxproj
  13. +168 −0 EyeTunesEventCodes.h
  14. +7 −0 EyeTunes_Prefix.pch
  15. +24 −0 Info.plist
  16. +38 −0 main.m
@@ -0,0 +1,209 @@
+fut AESend
+source AEDesc
+run
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+fut AESend
+source AEDesc
+run
+c
+c
+c
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+c
+c
+c
+c
+c
+c
+fut AESend
+source AEDesc
+r
+c
+c
+c
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+cd c
+c
+r
+c
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+aedesc $r3
+c
+c
+c
+aedesc $r3
+c
+c
+c
+c
+aedesc $r3
+c
+aedesc $r3
+c
+q
+fut AESend
+source AEDesc
+r
+c
+c
+c
+c
+aedesc $r3
+c
+r
+aedesc $r3
+c
+aedesc $r3
+c
+q
13 AEDesc
@@ -0,0 +1,13 @@
+define aedesc
+ call (void *) malloc(4)
+ set $aed_malloc=$
+ call (long) AEPrintDescToHandle($arg0, $aed_malloc)
+ if $ == 0
+ printf "desc @ %p = {\n type = '%.4s'\n storage (%p) = %s\n}\n", \
+ $arg0, $arg0, ((long *) $arg0)[1], **(char ***) $aed_malloc
+ call (void) DisposeHandle(*(char ***) $aed_malloc)
+ else
+ printf "aedesc failed: error %d.\n", $
+ end
+ call (void) free($aed_malloc)
+end
@@ -0,0 +1,81 @@
+/* ET_APPLE_EVENT_OBJECT -- Proxy Object For AppleEvent iTunes Objects
+ Forwards parameter/element requests through AppleEvent
+ transparently */
+
+/*
+
+ EyeTunes.framework - Cocoa iTunes Interface
+ http://www.liquidx.net/eyetunes/
+
+ Copyright (c) 2005, Alastair Tse <alastair@liquidx.net>
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright notice, this
+ list of conditions and the following disclaimer in the documentation and/or
+ other materials provided with the distribution.
+
+ Neither the Alastair Tse nor the names of its contributors may
+ be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#import <Cocoa/Cocoa.h>
+
+#define ET_APPLE_EVENT_OBJECT_DEFAULT_APPL 'hook'
+
+@interface ETAppleEventObject : NSObject {
+ AEDesc *refDescriptor;
+ OSType targetApplCode;
+}
+
+- (id) initWithDescriptor:(AEDesc *)aDesc applCode:(OSType)applCode;
+- (AEDesc *)descriptor;
++ (void) printDescriptor:(AEDesc *)desc;
+
+// AEGizmo String Generation
+
+- (NSString *) eventParameterStringForCountElementsOfClass:(DescType)classType;
+- (NSString *) eventParameterStringForElementOfClass:(DescType)classType atIndex:(int)index;
+- (NSString *) eventParameterStringForProperty:(DescType)descType;
+- (NSString *) eventParameterStringForSettingProperty:(DescType)descType;
+- (NSString *) eventParameterStringForSettingProperty:(DescType)propertyType OfElementOfClass:(DescType)classType atIndex:(int)index;
+
+// Get/Set Object "Properties"
+- (AppleEvent *) getPropertyOfType:(DescType)descType forObject:(AEDesc *)targetObject;
+- (AppleEvent *) getPropertyOfType:(DescType)descType;
+- (BOOL) setPropertyWithValue:(AEDesc *)valueDesc ofType:(DescType)descType forObject:(AEDesc *)targetObject;
+- (BOOL) setPropertyWithValue:(AEDesc *)valueDesc ofType:(DescType)descType;
+
+// Count/Get/Set Object "Elements"
+- (AppleEvent *) getElementOfClass:(DescType)classType atIndex:(int)index;
+- (AppleEvent *) getCountOfElementsOfClass:(DescType)descType;
+- (BOOL) setElementOfClass:(DescType)classType atIndex:(int)index withValue:(AEDesc *)value;
+- (BOOL) setProperty:(DescType)propertyType OfElementOfClass:(DescType)classType atIndex:(int)index withValue:(AEDesc *)value;
+
+// Get/Set Properties directly
+- (int) getPropertyAsIntegerForDesc:(DescType)descType;
+- (NSString *) getPropertyAsStringForDesc:(DescType)descType;
+- (NSDate *) getPropertyAsDateForDesc:(DescType)descType;
+- (BOOL) setPropertyWithInteger:(int)value forDesc:(DescType)descType;
+- (BOOL) setPropertyWithString:(NSString *)value forDesc:(DescType)descType;
+- (BOOL) setPropertyWithDate:(NSDate *)value forDesc:(DescType)descType;
+@end
Oops, something went wrong.

0 comments on commit 670609d

Please sign in to comment.