Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 364484
Collapse All | Expand All

(-)a/bundles/org.eclipse.equinox.executable/library/carbon/eclipseCarbon.c (-10 / +14 lines)
Lines 118-133 static NSWindow* window = nil; Link Here
118
	}
118
	}
119
		
119
		
120
	for (index = 1; index<=count; index++) {
120
	for (index = 1; index<=count; index++) {
121
		NSAppleEventDescriptor *desc = [event descriptorAtIndex:index];
121
		CFURLRef url = NULL;
122
		if (desc) {
122
		NSAppleEventDescriptor *desc = [event descriptorAtIndex:index], *coerceDesc;
123
			desc = [desc coerceToDescriptorType:typeFSRef];
123
		if (!desc) continue;
124
			CFURLRef url = CFURLCreateFromFSRef(kCFAllocatorDefault, [[desc data] bytes]);
124
		if ((coerceDesc = [desc coerceToDescriptorType: typeFSRef]) != NULL) {
125
			if (url) {
125
			url = CFURLCreateFromFSRef(kCFAllocatorDefault, [[coerceDesc data] bytes]);
126
				NSString *pathName = (NSString *)CFURLCopyFileSystemPath(url, kCFURLPOSIXPathStyle);
126
		} else if ((coerceDesc = [desc coerceToDescriptorType: typeFileURL]) != NULL) {
127
				[files addObject:pathName];
127
			NSData *data = [coerceDesc data];
128
				[pathName release];
128
			url = CFURLCreateWithBytes(kCFAllocatorDefault, [data bytes], [data length], kCFStringEncodingUTF8, NULL);
129
				CFRelease(url);
129
		}
130
			}
130
		if (url) {
131
			NSString *pathName = (NSString *)CFURLCopyFileSystemPath(url, kCFURLPOSIXPathStyle);
132
			[files addObject:pathName];
133
			[pathName release];
134
			CFRelease(url);
131
		}
135
		}
132
	}
136
	}
133
	
137
	

Return to bug 364484