QTfrontend/NSWorkspace_RBAdditions.m
changeset 3697 d5b30d6373fc
parent 2400 2422ea85d100
child 6479 4f08821cbff5
equal deleted inserted replaced
3695:c11abf387a7d 3697:d5b30d6373fc
   105 			if (value = [props objectForKey:@"USB Vendor Name"]) {
   105 			if (value = [props objectForKey:@"USB Vendor Name"]) {
   106 				result = AddPart(result,value);
   106 				result = AddPart(result,value);
   107 			}
   107 			}
   108 			NSString* cls = [(NSString*)IOObjectCopyClass(nextParent) autorelease];
   108 			NSString* cls = [(NSString*)IOObjectCopyClass(nextParent) autorelease];
   109 			if (![cls isEqualToString:@"IOPCIDevice"]) {
   109 			if (![cls isEqualToString:@"IOPCIDevice"]) {
   110 			
   110 
   111 // Uncomment the following line to have the device tree dumped to the console.
   111 // Uncomment the following line to have the device tree dumped to the console.
   112 //				NSLog(@"=================================> %@:%@\n",cls,props);
   112 //				NSLog(@"=================================> %@:%@\n",cls,props);
   113 
   113 
   114 				result = CheckParents(nextParent,result,dict);
   114 				result = CheckParents(nextParent,result,dict);
   115 			}
   115 			}
   205 			if (masterPort) {
   205 			if (masterPort) {
   206 				mach_port_deallocate(mach_task_self(),masterPort);
   206 				mach_port_deallocate(mach_task_self(),masterPort);
   207 			}
   207 			}
   208 		}
   208 		}
   209 		//Don't need this for disk images, gets around warnings for some deprecated functions
   209 		//Don't need this for disk images, gets around warnings for some deprecated functions
   210 		
   210 
   211 		/* else {
   211 		/* else {
   212 // For a network volume, get the volume reference number and use to get the server URL.
   212 // For a network volume, get the volume reference number and use to get the server URL.
   213 			FSRef ref;
   213 			FSRef ref;
   214 			if (FSPathMakeRef((const UInt8*)ccpath,&ref,NULL)==noErr) {
   214 			if (FSPathMakeRef((const UInt8*)ccpath,&ref,NULL)==noErr) {
   215 				FSCatalogInfo info;
   215 				FSCatalogInfo info;