Skip to content

Commit

Permalink
Fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chendo committed Apr 21, 2011
1 parent 2e7027f commit 116b109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DocumentPath.m
Expand Up @@ -12,7 +12,7 @@
@implementation DocumentPath

+(NSArray *) documentPathsForMostRecentApp {
NSArray *appsInOrder = CopyLaunchedApplicationsInFrontToBackOrder();
NSArray *appsInOrder = (NSArray *)CopyLaunchedApplicationsInFrontToBackOrder();
for(int i=0; i<appsInOrder.count; i++) {
NSDictionary *app = [appsInOrder objectAtIndex:i];
NSArray *paths = [self documentPathsForPID:[[app objectForKey:@"pid"] integerValue]];
Expand Down Expand Up @@ -59,7 +59,7 @@ +(NSArray *) documentPathsForPID:(int) pid {

for(int i=0; i<[windows count]; i++) {
NSString *path;
AXUIElementCopyAttributeValue([windows objectAtIndex:i], kAXDocumentAttribute, &path);
AXUIElementCopyAttributeValue((AXUIElementRef)[windows objectAtIndex:i], kAXDocumentAttribute, &path);
if (path == NULL)
continue;
path = [[NSURL URLWithString:path] path];
Expand Down

0 comments on commit 116b109

Please sign in to comment.