16 CFMutableDictionaryRef attributes,
17 CFStringRef contentTypeUTI,
18 CFStringRef pathToFile)
24 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
26 NSMutableSet *nameSet = [[[NSMutableSet alloc] init] autorelease];
27 NSMutableSet *titleSet = [[[NSMutableSet alloc] init] autorelease];
29 if (
ReadFile((NSString*)pathToFile, nameSet, titleSet) == -1) {
34 if ([nameSet count]) {
35 NSString *names = [[nameSet allObjects] componentsJoinedByString: @"\n"];
36 [(NSMutableDictionary *)attributes setObject: names
37 forKey: @"ch_cern_root_data_objectName"];
39 if ([titleSet count]) {
40 NSString *titles = [[titleSet allObjects] componentsJoinedByString: @"\n"];
41 [(NSMutableDictionary *)attributes setObject: titles
42 forKey: @"ch_cern_root_data_objectTitle"];