├── README ├── XMLUse ├── en.lproj │ ├── InfoPlist.strings │ └── MainWindow.xib ├── TreeModle.xcdatamodeld │ ├── TreeModle.xcdatamodel │ │ ├── layout │ │ └── elements │ └── .xccurrentversion ├── XMLUse-Prefix.pch ├── main.m ├── CoreDataBaseUse.h ├── XMLList.m ├── XMLUseAppDelegate.h ├── XMLList.h ├── XMLParser.h ├── myIndexViewController.h ├── MyTableViewUse.h ├── XMLUse-Info.plist ├── myIndexViewController.m ├── XMLParser.m ├── XMLUseAppDelegate.m ├── CoreDataBaseUse.m ├── MyTableViewUse.m └── myIndexViewController.xib ├── XMLUseTests ├── en.lproj │ └── InfoPlist.strings ├── XMLUseTests-Prefix.pch ├── XMLUseTests.h ├── XMLUseTests.m └── XMLUseTests-Info.plist ├── .gitignore ├── XMLUse.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj └── TreeUse.xml /README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /XMLUse/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /XMLUseTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | _Store 2 | *.swp 3 | *~.nib 4 | build/ 5 | *.pbxuser 6 | *.perspective 7 | *.perspectivev3 8 | xcuserdata 9 | -------------------------------------------------------------------------------- /XMLUse/TreeModle.xcdatamodeld/TreeModle.xcdatamodel/layout: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samplecode/XMLUse/master/XMLUse/TreeModle.xcdatamodeld/TreeModle.xcdatamodel/layout -------------------------------------------------------------------------------- /XMLUse/TreeModle.xcdatamodeld/TreeModle.xcdatamodel/elements: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samplecode/XMLUse/master/XMLUse/TreeModle.xcdatamodeld/TreeModle.xcdatamodel/elements -------------------------------------------------------------------------------- /XMLUseTests/XMLUseTests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'XMLUseTests' target in the 'XMLUseTests' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /XMLUse.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /XMLUse/TreeModle.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | TreeModle.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /XMLUseTests/XMLUseTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // XMLUseTests.h 3 | // XMLUseTests 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface XMLUseTests : SenTestCase { 13 | @private 14 | 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /XMLUse/XMLUse-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'XMLUse' target in the 'XMLUse' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iPhone SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /XMLUse/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, nil); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /XMLUse/CoreDataBaseUse.h: -------------------------------------------------------------------------------- 1 | // 2 | // CoreDataBaseUse.h 3 | // XMLUse 4 | // 5 | // Created by App on 2011/10/13. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import "XMLParser.h" 12 | #import "XMLList.h" 13 | 14 | 15 | @interface CoreDataBaseUse : NSObject 16 | 17 | + (id) sharedDataStore ; 18 | - (NSManagedObjectContext *) disposableMOC; 19 | -(void) setXMLData; 20 | @end 21 | -------------------------------------------------------------------------------- /XMLUse/XMLList.m: -------------------------------------------------------------------------------- 1 | // 2 | // XMLList.m 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "XMLList.h" 10 | 11 | 12 | @implementation XMLList 13 | 14 | 15 | @synthesize treeID; 16 | @synthesize treeKind; 17 | @synthesize treeAddress; 18 | 19 | -(void)dealloc{ 20 | [super dealloc]; 21 | [treeID release]; 22 | [treeKind release]; 23 | [treeAddress release]; 24 | } 25 | @end 26 | -------------------------------------------------------------------------------- /XMLUse/XMLUseAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // XMLUseAppDelegate.h 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MyTableViewUse.h" 11 | 12 | @interface XMLUseAppDelegate : NSObject { 13 | 14 | } 15 | 16 | @property (nonatomic, retain) IBOutlet UIWindow *window; 17 | @property (nonatomic,retain)IBOutlet UINavigationController *navigationController; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /XMLUse/XMLList.h: -------------------------------------------------------------------------------- 1 | // 2 | // XMLList.h 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface XMLList : NSObject { 13 | // 14 | NSString *treeID; 15 | // <description> 16 | NSString *treeKind; 17 | // <link> 18 | NSString *treeAddress; 19 | } 20 | 21 | 22 | @property(nonatomic,retain)NSString *treeID; 23 | @property(nonatomic,retain)NSString *treeKind; 24 | @property(nonatomic,retain)NSString *treeAddress; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /XMLUseTests/XMLUseTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // XMLUseTests.m 3 | // XMLUseTests 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "XMLUseTests.h" 10 | 11 | 12 | @implementation XMLUseTests 13 | 14 | - (void)setUp 15 | { 16 | [super setUp]; 17 | 18 | // Set-up code here. 19 | } 20 | 21 | - (void)tearDown 22 | { 23 | // Tear-down code here. 24 | 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample 29 | { 30 | STFail(@"Unit tests are not implemented yet in XMLUseTests"); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /XMLUse/XMLParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // XMLParser.h 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import <Foundation/Foundation.h> 10 | #import "XMLList.h" 11 | 12 | @interface XMLParser : NSObject <NSXMLParserDelegate>{ 13 | BOOL idFound; 14 | BOOL kindFound; 15 | BOOL addressFound; 16 | BOOL itemFound; 17 | NSString *treeID; 18 | NSString *treeKind; 19 | NSString *treeAddress; 20 | NSMutableArray *treeItems; 21 | } 22 | -(id)initWrithData:(NSData*) data; 23 | -(NSMutableArray *)result; 24 | @end 25 | -------------------------------------------------------------------------------- /XMLUse/myIndexViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // myIndexViewController.h 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/11. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import <UIKit/UIKit.h> 10 | 11 | 12 | @interface myIndexViewController : UIViewController { 13 | 14 | } 15 | @property(nonatomic,retain)IBOutlet UILabel *treeIDLable; 16 | @property(nonatomic,retain)IBOutlet UILabel *treeKindLable; 17 | @property(nonatomic,retain)IBOutlet UILabel *treeAddressLable; 18 | -(void) setIDText:(NSString *) textID setKindText:(NSString *) textKind setAddressText:(NSString*) textAddress ; 19 | -(IBAction)buttonUse:(id)sender; 20 | @end 21 | -------------------------------------------------------------------------------- /TreeUse.xml: -------------------------------------------------------------------------------- 1 | <Tree> 2 | <TreeIndex> 3 | <TREE_ID>24</TREE_ID> 4 | <TREE_KIND>Ficus microcarpa L. f.</TREE_KIND> 5 | <TREE_xAddress>臺北市中正區河堤里水源路65號左側綠地近紀州庵</TREE_xAddress> 6 | </TreeIndex> 7 | <TreeIndex> 8 | <TREE_ID>60</TREE_ID> 9 | <TREE_KIND>Ficus microcarpa L. f.</TREE_KIND> 10 | <TREE_xAddress>臺北市中正區河堤里水源路65號左側綠地近紀州庵</TREE_xAddress> 11 | </TreeIndex> 12 | <TreeIndex> 13 | <TREE_ID>90</TREE_ID> 14 | <TREE_KIND>Ficus microcarpa L. f.</TREE_KIND> 15 | <TREE_xAddress>臺北市中正區河堤里水源路65號左側綠地近紀州庵</TREE_xAddress> 16 | </TreeIndex> 17 | <TreeIndex> 18 | <TREE_ID>1</TREE_ID> 19 | <TREE_KIND>Ficus microcarpa L. f.</TREE_KIND> 20 | <TREE_xAddress>中正區梅花里八德路一段51號光華商場右邊停車場內</TREE_xAddress> 21 | </TreeIndex> 22 | </Tree> -------------------------------------------------------------------------------- /XMLUseTests/XMLUseTests-Info.plist: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8"?> 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 3 | <plist version="1.0"> 4 | <dict> 5 | <key>CFBundleDevelopmentRegion</key> 6 | <string>en</string> 7 | <key>CFBundleExecutable</key> 8 | <string>${EXECUTABLE_NAME}</string> 9 | <key>CFBundleIdentifier</key> 10 | <string>yimyo.${PRODUCT_NAME:rfc1034identifier}</string> 11 | <key>CFBundleInfoDictionaryVersion</key> 12 | <string>6.0</string> 13 | <key>CFBundlePackageType</key> 14 | <string>BNDL</string> 15 | <key>CFBundleShortVersionString</key> 16 | <string>1.0</string> 17 | <key>CFBundleSignature</key> 18 | <string>????</string> 19 | <key>CFBundleVersion</key> 20 | <string>1</string> 21 | </dict> 22 | </plist> 23 | -------------------------------------------------------------------------------- /XMLUse/MyTableViewUse.h: -------------------------------------------------------------------------------- 1 | // 2 | // MyTableViewUse.h 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/11. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import <UIKit/UIKit.h> 10 | #import <CoreData/CoreData.h> 11 | #import "myIndexViewController.h" 12 | #import "XMLParser.h" 13 | #import "XMLList.h" 14 | #import "CoreDataBaseUse.h" 15 | 16 | 17 | @interface MyTableViewUse : UITableViewController<UITableViewDelegate,NSFetchedResultsControllerDelegate> { 18 | NSMutableArray *treeIndex; 19 | XMLParser *parser; 20 | } 21 | 22 | @property(nonatomic,retain) NSArray *dataArray; 23 | @property (nonatomic, readwrite, retain) NSManagedObjectContext *managedObjectContext; 24 | @property (nonatomic, readwrite, retain) NSFetchedResultsController *fetchedResultsController; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /XMLUse/XMLUse-Info.plist: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8"?> 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 3 | <plist version="1.0"> 4 | <dict> 5 | <key>CFBundleDevelopmentRegion</key> 6 | <string>en</string> 7 | <key>CFBundleDisplayName</key> 8 | <string>${PRODUCT_NAME}</string> 9 | <key>CFBundleExecutable</key> 10 | <string>${EXECUTABLE_NAME}</string> 11 | <key>CFBundleIconFile</key> 12 | <string></string> 13 | <key>CFBundleIdentifier</key> 14 | <string>yimyo.${PRODUCT_NAME:rfc1034identifier}</string> 15 | <key>CFBundleInfoDictionaryVersion</key> 16 | <string>6.0</string> 17 | <key>CFBundleName</key> 18 | <string>${PRODUCT_NAME}</string> 19 | <key>CFBundlePackageType</key> 20 | <string>APPL</string> 21 | <key>CFBundleShortVersionString</key> 22 | <string>1.0</string> 23 | <key>CFBundleSignature</key> 24 | <string>????</string> 25 | <key>CFBundleVersion</key> 26 | <string>1.0</string> 27 | <key>LSRequiresIPhoneOS</key> 28 | <true/> 29 | <key>NSMainNibFile</key> 30 | <string>MainWindow</string> 31 | <key>UISupportedInterfaceOrientations</key> 32 | <array> 33 | <string>UIInterfaceOrientationPortrait</string> 34 | <string>UIInterfaceOrientationLandscapeLeft</string> 35 | <string>UIInterfaceOrientationLandscapeRight</string> 36 | </array> 37 | </dict> 38 | </plist> 39 | -------------------------------------------------------------------------------- /XMLUse/myIndexViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // myIndexViewController.m 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/11. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "myIndexViewController.h" 10 | 11 | 12 | @implementation myIndexViewController 13 | 14 | @synthesize treeIDLable; 15 | @synthesize treeKindLable; 16 | @synthesize treeAddressLable; 17 | 18 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 19 | { 20 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 21 | if (self) { 22 | // Custom initialization 23 | } 24 | return self; 25 | } 26 | 27 | - (void)dealloc 28 | { 29 | [super dealloc]; 30 | } 31 | 32 | - (void)didReceiveMemoryWarning 33 | { 34 | // Releases the view if it doesn't have a superview. 35 | [super didReceiveMemoryWarning]; 36 | 37 | // Release any cached data, images, etc that aren't in use. 38 | } 39 | 40 | #pragma mark - View lifecycle 41 | 42 | - (void)viewDidLoad 43 | { 44 | [super viewDidLoad]; 45 | //[self change]; 46 | //treeIDLable.text = @"AA"; 47 | //treeKindLable.text = @"BB"; 48 | //treeAddressLable.text = @"CC"; 49 | // Do any additional setup after loading the view from its nib. 50 | } 51 | 52 | - (void)viewDidUnload 53 | { 54 | [super viewDidUnload]; 55 | // Release any retained subviews of the main view. 56 | // e.g. self.myOutlet = nil; 57 | } 58 | 59 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 60 | { 61 | // Return YES for supported orientations 62 | return (interfaceOrientation == UIInterfaceOrientationPortrait); 63 | } 64 | 65 | 66 | -(void) setIDText:(NSString *) textID setKindText:(NSString *) textKind setAddressText:(NSString*) textAddress { 67 | //UITextView *view = (UITextView *)[self view]; 68 | //[view setText:text]; 69 | self.treeIDLable.text = textID; 70 | self.treeKindLable.text = textKind; 71 | self.treeAddressLable.text = textAddress; 72 | } 73 | 74 | 75 | -(void)change2{ 76 | NSLog(@"AAA2222"); 77 | self.treeIDLable.text = @"DSXSAXSD2222"; 78 | } 79 | -(IBAction)buttonUse:(id)sender{ 80 | [self change2]; 81 | } 82 | @end 83 | -------------------------------------------------------------------------------- /XMLUse/XMLParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // XMLParser.m 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "XMLParser.h" 10 | 11 | 12 | @implementation XMLParser 13 | 14 | -(id)initWrithData:(NSData*) data{ 15 | 16 | self = [self init]; 17 | NSXMLParser *parser = [[[NSXMLParser alloc]initWithData:data]autorelease]; 18 | treeItems = [[NSMutableArray alloc]init]; 19 | parser.delegate = self; 20 | [parser parse]; 21 | idFound = NO; 22 | kindFound = NO; 23 | addressFound = NO; 24 | 25 | return self; 26 | } 27 | 28 | -(void) parser:(NSXMLParser *) parser didStartElement:(NSString *) elementName namespaceURI:(NSString *) namespaceURI qualifiedName:(NSString *) qName attributes:(NSDictionary *) attributeDict{ 29 | 30 | 31 | if(itemFound){ 32 | if([elementName isEqualToString:@"TREE_ID"]){ 33 | idFound = YES; 34 | }else if([elementName isEqualToString:@"TREE_xAddress"]){ 35 | addressFound = YES; 36 | }else if([elementName isEqualToString:@"TREE_KIND"]){ 37 | kindFound = YES; 38 | } 39 | } 40 | if([elementName isEqualToString:@"TreeIndex"]){ 41 | itemFound = YES; 42 | } 43 | } 44 | 45 | -(void) parser:(NSXMLParser *) parser didEndElement:(NSString *) elementName namespaceURI:(NSString *) namespaceURI qualifiedName:(NSString *) qName{ 46 | 47 | if([elementName isEqualToString:@"TreeIndex"]){ 48 | itemFound = NO; 49 | } 50 | if(itemFound){ 51 | if([elementName isEqualToString:@"TREE_ID"]){ 52 | idFound = NO; 53 | }else if([elementName isEqualToString:@"TREE_xAddress"]){ 54 | addressFound = NO; 55 | }else if([elementName isEqualToString:@"TREE_KIND"]){ 56 | kindFound = NO; 57 | } 58 | } 59 | } 60 | 61 | -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{ 62 | if(itemFound){ 63 | string = [string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; 64 | if([string length]==0){ 65 | return; 66 | } 67 | if(idFound){ 68 | treeID = string; 69 | } 70 | if(kindFound){ 71 | treeKind = string; 72 | } 73 | if(addressFound){ 74 | 75 | XMLList *list = [[XMLList alloc]init]; 76 | list.treeID = treeID; 77 | list.treeKind = treeKind; 78 | list.treeAddress = string; 79 | [treeItems addObject:list]; 80 | [list release]; 81 | } 82 | 83 | } 84 | } 85 | 86 | -(NSMutableArray *)result{ 87 | return treeItems; 88 | } 89 | 90 | -(void) dealloc{ 91 | [super dealloc]; 92 | [treeItems release]; 93 | } 94 | @end 95 | -------------------------------------------------------------------------------- /XMLUse/XMLUseAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // XMLUseAppDelegate.m 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/10. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "XMLUseAppDelegate.h" 10 | 11 | @implementation XMLUseAppDelegate 12 | 13 | 14 | @synthesize window=_window; 15 | @synthesize navigationController; 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | [self.window makeKeyAndVisible]; 20 | 21 | MyTableViewUse *myRootViewController = [[[MyTableViewUse alloc]init]autorelease]; 22 | UINavigationController *myNavigationController = [[[UINavigationController alloc]initWithRootViewController:myRootViewController]autorelease]; 23 | self.window.rootViewController = myNavigationController; 24 | 25 | //self.window.rootViewController = [[[MyTableViewUse alloc]init]autorelease]; 26 | 27 | 28 | return YES; 29 | } 30 | 31 | - (void)applicationWillResignActive:(UIApplication *)application 32 | { 33 | /* 34 | Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 35 | Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 36 | */ 37 | } 38 | 39 | - (void)applicationDidEnterBackground:(UIApplication *)application 40 | { 41 | /* 42 | Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 43 | If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 44 | */ 45 | } 46 | 47 | - (void)applicationWillEnterForeground:(UIApplication *)application 48 | { 49 | /* 50 | Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 51 | */ 52 | } 53 | 54 | - (void)applicationDidBecomeActive:(UIApplication *)application 55 | { 56 | /* 57 | Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 58 | */ 59 | } 60 | 61 | - (void)applicationWillTerminate:(UIApplication *)application 62 | { 63 | /* 64 | Called when the application is about to terminate. 65 | Save data if appropriate. 66 | See also applicationDidEnterBackground:. 67 | */ 68 | } 69 | 70 | - (void)dealloc 71 | { 72 | [_window release]; 73 | [super dealloc]; 74 | } 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /XMLUse/CoreDataBaseUse.m: -------------------------------------------------------------------------------- 1 | // 2 | // CoreDataBaseUse.m 3 | // XMLUse 4 | // 5 | // Created by App on 2011/10/13. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CoreDataBaseUse.h" 10 | 11 | //自定UserDefault的名稱 12 | NSString * const kCoreDataBaseUse_DidImportData = @"kCoreDataBaseUse_DidImportData"; 13 | 14 | @interface CoreDataBaseUse () 15 | 16 | @property (nonatomic, readwrite, retain) NSPersistentStoreCoordinator *coordinator; 17 | 18 | @end 19 | 20 | @implementation CoreDataBaseUse 21 | @synthesize coordinator; 22 | 23 | + (id) sharedDataStore { 24 | 25 | static __typeof__(self) returnedInstance = nil; 26 | static dispatch_once_t onceToken; 27 | dispatch_once(&onceToken, ^ { 28 | returnedInstance = [[self alloc] init]; 29 | }); 30 | //[[self alloc] init]; 31 | return returnedInstance; 32 | 33 | } 34 | 35 | - (id)init 36 | { 37 | self = [super init]; 38 | if (self) { 39 | // Initialization code here. 40 | } 41 | //建立coreData資料庫 42 | NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"TreeModle" withExtension:@"momd"]; 43 | NSManagedObjectModel *model = [[[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL] autorelease]; 44 | 45 | NSString *documentDirectory =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; 46 | NSURL *storeURL = [NSURL fileURLWithPath:[documentDirectory stringByAppendingPathComponent:@"TreeModle.sqlite"]]; 47 | 48 | self.coordinator = [[[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:model] autorelease]; 49 | 50 | 51 | NSError *storeAddingError = nil; 52 | if (![coordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption,[NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption,nil] error:&storeAddingError]) { 53 | NSLog(@"storeAddingError %@", storeAddingError); 54 | } 55 | 56 | //建立使用者初始本機資料 57 | BOOL hasImportedData = [[NSUserDefaults standardUserDefaults] boolForKey:kCoreDataBaseUse_DidImportData]; 58 | NSInteger userRound = [[NSUserDefaults standardUserDefaults]integerForKey:kCoreDataBaseUse_DidImportData]; 59 | 60 | if (!hasImportedData) { 61 | [self setXMLData]; 62 | [[NSUserDefaults standardUserDefaults]setInteger:1 forKey:kCoreDataBaseUse_DidImportData]; 63 | [[NSUserDefaults standardUserDefaults] setBool:YES forKey:kCoreDataBaseUse_DidImportData]; 64 | if([[NSUserDefaults standardUserDefaults] synchronize]) 65 | NSLog(@"UserRound %i",userRound); 66 | } 67 | return self; 68 | } 69 | 70 | -(void)dealloc{ 71 | [coordinator release]; 72 | [super dealloc]; 73 | } 74 | 75 | //產生NSManagedObjectContext 76 | - (NSManagedObjectContext *) disposableMOC { 77 | 78 | NSManagedObjectContext *context = [[[NSManagedObjectContext alloc] init] autorelease]; 79 | 80 | [context setPersistentStoreCoordinator:self.coordinator]; 81 | 82 | return context; 83 | 84 | } 85 | 86 | -(void) setXMLData{ 87 | NSManagedObjectContext *context = [[[NSManagedObjectContext alloc] init] autorelease]; 88 | [context setPersistentStoreCoordinator:self.coordinator]; 89 | 90 | 91 | NSMutableArray *treeIndex; 92 | //產生用來解析XML的物件 93 | XMLParser *parser; 94 | 95 | NSData *mydata = [NSData dataWithContentsOfFile:[[[NSBundle mainBundle]resourcePath]stringByAppendingPathComponent:@"TreeUse.xml"]]; 96 | parser = [[XMLParser alloc]initWrithData:mydata]; 97 | treeIndex = [parser result]; 98 | 99 | //利用回全寫入CoreData資料庫 100 | for (int i = 0; i < [treeIndex count]; i++) { 101 | NSManagedObject *savedPerson = [[[NSManagedObject alloc] initWithEntity:[NSEntityDescription entityForName:@"TreeIndex" inManagedObjectContext:context] insertIntoManagedObjectContext:context] autorelease]; 102 | 103 | XMLList *index = [treeIndex objectAtIndex:i]; 104 | 105 | [savedPerson setValue:index.treeID forKey:@"TREE_ID"]; 106 | [savedPerson setValue:index.treeKind forKey:@"TREE_KIND"]; 107 | [savedPerson setValue:index.treeAddress forKey:@"TREE_xAddress"]; 108 | 109 | NSError *savingError = nil; 110 | if (![context save:&savingError]) 111 | NSLog(@"Error saving: %@", savingError); 112 | 113 | [index release]; 114 | 115 | } 116 | } 117 | 118 | @end 119 | -------------------------------------------------------------------------------- /XMLUse/MyTableViewUse.m: -------------------------------------------------------------------------------- 1 | // 2 | // MyTableViewUse.m 3 | // XMLUse 4 | // 5 | // Created by yimyo on 2011/10/11. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "MyTableViewUse.h" 10 | 11 | 12 | @implementation MyTableViewUse 13 | @synthesize dataArray; 14 | @synthesize managedObjectContext, fetchedResultsController; 15 | 16 | 17 | - (id)initWithStyle:(UITableViewStyle)style 18 | { 19 | self = [super initWithStyle:style]; 20 | if (self) { 21 | // Custom initialization 22 | } 23 | 24 | managedObjectContext = [[[CoreDataBaseUse sharedDataStore] disposableMOC] retain]; 25 | 26 | NSFetchRequest *request = [[[NSFetchRequest alloc] init] autorelease]; 27 | [request setEntity:[NSEntityDescription entityForName:@"TreeIndex" inManagedObjectContext:self.managedObjectContext]]; 28 | [request setSortDescriptors:[NSArray arrayWithObjects:[NSSortDescriptor sortDescriptorWithKey:@"TREE_ID" ascending:YES],nil]]; 29 | [request setReturnsObjectsAsFaults:NO]; 30 | 31 | fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest: request managedObjectContext:managedObjectContext sectionNameKeyPath:nil cacheName:nil]; 32 | 33 | fetchedResultsController.delegate = self; 34 | 35 | NSError *initialFetchingError = nil; 36 | if (![fetchedResultsController performFetch:&initialFetchingError]) 37 | NSLog(@"error performing initial fetch: %@", initialFetchingError); 38 | 39 | fetchedResultsController.delegate = self; 40 | 41 | 42 | return self; 43 | } 44 | 45 | - (void)dealloc 46 | { 47 | [super dealloc]; 48 | } 49 | 50 | - (void)didReceiveMemoryWarning 51 | { 52 | // Releases the view if it doesn't have a superview. 53 | [super didReceiveMemoryWarning]; 54 | 55 | // Release any cached data, images, etc that aren't in use. 56 | } 57 | 58 | #pragma mark - View lifecycle 59 | 60 | - (void)viewDidLoad 61 | { 62 | 63 | [super viewDidLoad]; 64 | 65 | //NSData *mydata = [NSData dataWithContentsOfFile:[[[NSBundle mainBundle]resourcePath]stringByAppendingPathComponent:@"TreeUse.xml"]]; 66 | //parser = [[XMLParser alloc]initWrithData:mydata]; 67 | //treeIndex = [parser result]; 68 | 69 | self.title = @"TreeID"; 70 | 71 | 72 | // Uncomment the following line to preserve selection between presentations. 73 | // self.clearsSelectionOnViewWillAppear = NO; 74 | 75 | // Uncomment the following line to display an Edit button in the navigation bar for this view controller. 76 | // self.navigationItem.rightBarButtonItem = self.editButtonItem; 77 | } 78 | 79 | 80 | - (void)viewDidUnload 81 | { 82 | 83 | [super viewDidUnload]; 84 | // Release any retained subviews of the main view. 85 | // e.g. self.myOutlet = nil; 86 | 87 | 88 | } 89 | 90 | - (void)viewWillAppear:(BOOL)animated 91 | { 92 | [super viewWillAppear:animated]; 93 | } 94 | 95 | - (void)viewDidAppear:(BOOL)animated 96 | { 97 | [super viewDidAppear:animated]; 98 | } 99 | 100 | - (void)viewWillDisappear:(BOOL)animated 101 | { 102 | [super viewWillDisappear:animated]; 103 | } 104 | 105 | - (void)viewDidDisappear:(BOOL)animated 106 | { 107 | [super viewDidDisappear:animated]; 108 | } 109 | 110 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 111 | { 112 | // Return YES for supported orientations 113 | return (interfaceOrientation == UIInterfaceOrientationPortrait); 114 | } 115 | 116 | #pragma mark - Table view data source 117 | 118 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 119 | { 120 | return [[self.fetchedResultsController sections] count]; 121 | } 122 | 123 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 124 | { 125 | return [(id<NSFetchedResultsSectionInfo>)[[self.fetchedResultsController sections] objectAtIndex:section] numberOfObjects]; 126 | } 127 | 128 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 129 | { 130 | static NSString *CellIdentifier = @"Cell"; 131 | 132 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 133 | 134 | if (cell == nil) { 135 | cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 136 | } 137 | 138 | 139 | //NSInteger row = [indexPath row]; 140 | //XMLList *rss = [treeIndex objectAtIndex:row]; 141 | //cell.textLabel.text = rss.treeID; 142 | 143 | NSManagedObject *personEntity = [self.fetchedResultsController objectAtIndexPath:indexPath]; 144 | 145 | cell.textLabel.text = [personEntity valueForKey:@"TREE_ID"]; 146 | 147 | return cell; 148 | 149 | } 150 | 151 | 152 | /* 153 | // Override to support conditional editing of the table view. 154 | - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath 155 | { 156 | // Return NO if you do not want the specified item to be editable. 157 | return YES; 158 | } 159 | */ 160 | 161 | /* 162 | // Override to support editing the table view. 163 | - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath 164 | { 165 | if (editingStyle == UITableViewCellEditingStyleDelete) { 166 | // Delete the row from the data sourceNS 167 | [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; 168 | } 169 | else if (editingStyle == UITableViewCellEditingStyleInsert) { 170 | // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view 171 | } 172 | } 173 | */ 174 | 175 | /* 176 | // Override to support rearranging the table view. 177 | - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath 178 | { 179 | } 180 | */ 181 | 182 | /* 183 | // Override to support conditional rearranging of the table view. 184 | - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath 185 | { 186 | // Return NO if you do not want the item to be re-orderable. 187 | return YES; 188 | } 189 | */ 190 | 191 | //-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ 192 | // return 100; 193 | //} 194 | 195 | #pragma mark - Table view delegate 196 | 197 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 198 | { 199 | // Navigation logic may go here. Create and push another view controller. 200 | /* 201 | <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil]; 202 | // ... 203 | // Pass the selected object to the new view controller. 204 | [self.navigationController pushViewController:detailViewController animated:YES]; 205 | [detailViewController release]; 206 | */ 207 | myIndexViewController *newViewController = [[myIndexViewController alloc]init]; 208 | NSManagedObject *personEntity = [self.fetchedResultsController objectAtIndexPath:indexPath]; 209 | 210 | 211 | [self.navigationController pushViewController:newViewController animated:YES]; 212 | newViewController.title = @"index"; 213 | 214 | [newViewController setIDText:[personEntity valueForKey:@"TREE_ID"] setKindText:[personEntity valueForKey:@"TREE_KIND"]setAddressText:[personEntity valueForKey:@"TREE_xAddress"]]; 215 | // 216 | 217 | 218 | [newViewController release]; 219 | } 220 | 221 | @end 222 | -------------------------------------------------------------------------------- /XMLUse/en.lproj/MainWindow.xib: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8"?> 2 | <archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10"> 3 | <data> 4 | <int key="IBDocument.SystemTarget">800</int> 5 | <string key="IBDocument.SystemVersion">10D540</string> 6 | <string key="IBDocument.InterfaceBuilderVersion">760</string> 7 | <string key="IBDocument.AppKitVersion">1038.29</string> 8 | <string key="IBDocument.HIToolboxVersion">460.00</string> 9 | <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> 10 | <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 11 | <string key="NS.object.0">81</string> 12 | </object> 13 | <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> 14 | <bool key="EncodedWithXMLCoder">YES</bool> 15 | <integer value="2"/> 16 | </object> 17 | <object class="NSArray" key="IBDocument.PluginDependencies"> 18 | <bool key="EncodedWithXMLCoder">YES</bool> 19 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 20 | </object> 21 | <object class="NSMutableDictionary" key="IBDocument.Metadata"> 22 | <bool key="EncodedWithXMLCoder">YES</bool> 23 | <object class="NSArray" key="dict.sortedKeys" id="0"> 24 | <bool key="EncodedWithXMLCoder">YES</bool> 25 | </object> 26 | <object class="NSMutableArray" key="dict.values"> 27 | <bool key="EncodedWithXMLCoder">YES</bool> 28 | </object> 29 | </object> 30 | <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000"> 31 | <bool key="EncodedWithXMLCoder">YES</bool> 32 | <object class="IBProxyObject" id="841351856"> 33 | <string key="IBProxiedObjectIdentifier">IBFilesOwner</string> 34 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 35 | </object> 36 | <object class="IBProxyObject" id="427554174"> 37 | <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> 38 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 39 | </object> 40 | <object class="IBUICustomObject" id="664661524"> 41 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 42 | </object> 43 | <object class="IBUIWindow" id="380026005"> 44 | <reference key="NSNextResponder"/> 45 | <int key="NSvFlags">1316</int> 46 | <object class="NSPSMatrix" key="NSFrameMatrix"/> 47 | <string key="NSFrameSize">{320, 480}</string> 48 | <reference key="NSSuperview"/> 49 | <object class="NSColor" key="IBUIBackgroundColor"> 50 | <int key="NSColorSpace">1</int> 51 | <bytes key="NSRGB">MSAxIDEAA</bytes> 52 | </object> 53 | <bool key="IBUIOpaque">NO</bool> 54 | <bool key="IBUIClearsContextBeforeDrawing">NO</bool> 55 | <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> 56 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 57 | <bool key="IBUIResizesToFullScreen">YES</bool> 58 | </object> 59 | </object> 60 | <object class="IBObjectContainer" key="IBDocument.Objects"> 61 | <object class="NSMutableArray" key="connectionRecords"> 62 | <bool key="EncodedWithXMLCoder">YES</bool> 63 | <object class="IBConnectionRecord"> 64 | <object class="IBCocoaTouchOutletConnection" key="connection"> 65 | <string key="label">delegate</string> 66 | <reference key="source" ref="841351856"/> 67 | <reference key="destination" ref="664661524"/> 68 | </object> 69 | <int key="connectionID">4</int> 70 | </object> 71 | <object class="IBConnectionRecord"> 72 | <object class="IBCocoaTouchOutletConnection" key="connection"> 73 | <string key="label">window</string> 74 | <reference key="source" ref="664661524"/> 75 | <reference key="destination" ref="380026005"/> 76 | </object> 77 | <int key="connectionID">5</int> 78 | </object> 79 | </object> 80 | <object class="IBMutableOrderedSet" key="objectRecords"> 81 | <object class="NSArray" key="orderedObjects"> 82 | <bool key="EncodedWithXMLCoder">YES</bool> 83 | <object class="IBObjectRecord"> 84 | <int key="objectID">0</int> 85 | <reference key="object" ref="0"/> 86 | <reference key="children" ref="1000"/> 87 | <nil key="parent"/> 88 | </object> 89 | <object class="IBObjectRecord"> 90 | <int key="objectID">2</int> 91 | <reference key="object" ref="380026005"/> 92 | <object class="NSMutableArray" key="children"> 93 | <bool key="EncodedWithXMLCoder">YES</bool> 94 | </object> 95 | <reference key="parent" ref="0"/> 96 | </object> 97 | <object class="IBObjectRecord"> 98 | <int key="objectID">-1</int> 99 | <reference key="object" ref="841351856"/> 100 | <reference key="parent" ref="0"/> 101 | <string key="objectName">File's Owner</string> 102 | </object> 103 | <object class="IBObjectRecord"> 104 | <int key="objectID">3</int> 105 | <reference key="object" ref="664661524"/> 106 | <reference key="parent" ref="0"/> 107 | </object> 108 | <object class="IBObjectRecord"> 109 | <int key="objectID">-2</int> 110 | <reference key="object" ref="427554174"/> 111 | <reference key="parent" ref="0"/> 112 | </object> 113 | </object> 114 | </object> 115 | <object class="NSMutableDictionary" key="flattenedProperties"> 116 | <bool key="EncodedWithXMLCoder">YES</bool> 117 | <object class="NSArray" key="dict.sortedKeys"> 118 | <bool key="EncodedWithXMLCoder">YES</bool> 119 | <string>-1.CustomClassName</string> 120 | <string>-2.CustomClassName</string> 121 | <string>2.IBAttributePlaceholdersKey</string> 122 | <string>2.IBEditorWindowLastContentRect</string> 123 | <string>2.IBPluginDependency</string> 124 | <string>3.CustomClassName</string> 125 | <string>3.IBPluginDependency</string> 126 | </object> 127 | <object class="NSMutableArray" key="dict.values"> 128 | <bool key="EncodedWithXMLCoder">YES</bool> 129 | <string>UIApplication</string> 130 | <string>UIResponder</string> 131 | <object class="NSMutableDictionary"> 132 | <bool key="EncodedWithXMLCoder">YES</bool> 133 | <reference key="dict.sortedKeys" ref="0"/> 134 | <object class="NSMutableArray" key="dict.values"> 135 | <bool key="EncodedWithXMLCoder">YES</bool> 136 | </object> 137 | </object> 138 | <string>{{198, 376}, {320, 480}}</string> 139 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 140 | <string>XMLUseAppDelegate</string> 141 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 142 | </object> 143 | </object> 144 | <object class="NSMutableDictionary" key="unlocalizedProperties"> 145 | <bool key="EncodedWithXMLCoder">YES</bool> 146 | <reference key="dict.sortedKeys" ref="0"/> 147 | <object class="NSMutableArray" key="dict.values"> 148 | <bool key="EncodedWithXMLCoder">YES</bool> 149 | </object> 150 | </object> 151 | <nil key="activeLocalization"/> 152 | <object class="NSMutableDictionary" key="localizations"> 153 | <bool key="EncodedWithXMLCoder">YES</bool> 154 | <reference key="dict.sortedKeys" ref="0"/> 155 | <object class="NSMutableArray" key="dict.values"> 156 | <bool key="EncodedWithXMLCoder">YES</bool> 157 | </object> 158 | </object> 159 | <nil key="sourceID"/> 160 | <int key="maxID">9</int> 161 | </object> 162 | <object class="IBClassDescriber" key="IBDocument.Classes"> 163 | <object class="NSMutableArray" key="referencedPartialClassDescriptions"> 164 | <bool key="EncodedWithXMLCoder">YES</bool> 165 | <object class="IBPartialClassDescription"> 166 | <string key="className">XMLUseAppDelegate</string> 167 | <string key="superclassName">NSObject</string> 168 | <object class="NSMutableDictionary" key="outlets"> 169 | <string key="NS.key.0">window</string> 170 | <string key="NS.object.0">UIWindow</string> 171 | </object> 172 | <object class="IBClassDescriptionSource" key="sourceIdentifier"> 173 | <string key="majorKey">IBProjectSource</string> 174 | <string key="minorKey">XMLUseAppDelegate.h</string> 175 | </object> 176 | </object> 177 | <object class="IBPartialClassDescription"> 178 | <string key="className">XMLUseAppDelegate</string> 179 | <string key="superclassName">NSObject</string> 180 | <object class="IBClassDescriptionSource" key="sourceIdentifier"> 181 | <string key="majorKey">IBUserSource</string> 182 | <string key="minorKey"/> 183 | </object> 184 | </object> 185 | </object> 186 | </object> 187 | <int key="IBDocument.localizationMode">0</int> 188 | <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string> 189 | <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies"> 190 | <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string> 191 | <integer value="3100" key="NS.object.0"/> 192 | </object> 193 | <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> 194 | <string key="IBDocument.LastKnownRelativeProjectPath">XMLUse.xcodeproj</string> 195 | <int key="IBDocument.defaultPropertyAccessControl">3</int> 196 | <string key="IBCocoaTouchPluginVersion">81</string> 197 | </data> 198 | </archive> 199 | -------------------------------------------------------------------------------- /XMLUse/myIndexViewController.xib: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8"?> 2 | <archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10"> 3 | <data> 4 | <int key="IBDocument.SystemTarget">1056</int> 5 | <string key="IBDocument.SystemVersion">10K549</string> 6 | <string key="IBDocument.InterfaceBuilderVersion">1306</string> 7 | <string key="IBDocument.AppKitVersion">1038.36</string> 8 | <string key="IBDocument.HIToolboxVersion">461.00</string> 9 | <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> 10 | <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 11 | <string key="NS.object.0">301</string> 12 | </object> 13 | <object class="NSArray" key="IBDocument.IntegratedClassDependencies"> 14 | <bool key="EncodedWithXMLCoder">YES</bool> 15 | <string>IBUIButton</string> 16 | <string>IBUIView</string> 17 | <string>IBUILabel</string> 18 | <string>IBProxyObject</string> 19 | </object> 20 | <object class="NSArray" key="IBDocument.PluginDependencies"> 21 | <bool key="EncodedWithXMLCoder">YES</bool> 22 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 23 | </object> 24 | <object class="NSMutableDictionary" key="IBDocument.Metadata"> 25 | <bool key="EncodedWithXMLCoder">YES</bool> 26 | <object class="NSArray" key="dict.sortedKeys" id="0"> 27 | <bool key="EncodedWithXMLCoder">YES</bool> 28 | </object> 29 | <reference key="dict.values" ref="0"/> 30 | </object> 31 | <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000"> 32 | <bool key="EncodedWithXMLCoder">YES</bool> 33 | <object class="IBProxyObject" id="372490531"> 34 | <string key="IBProxiedObjectIdentifier">IBFilesOwner</string> 35 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 36 | </object> 37 | <object class="IBProxyObject" id="975951072"> 38 | <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> 39 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 40 | </object> 41 | <object class="IBUIView" id="191373211"> 42 | <reference key="NSNextResponder"/> 43 | <int key="NSvFlags">274</int> 44 | <object class="NSMutableArray" key="NSSubviews"> 45 | <bool key="EncodedWithXMLCoder">YES</bool> 46 | <object class="IBUILabel" id="945905314"> 47 | <reference key="NSNextResponder" ref="191373211"/> 48 | <int key="NSvFlags">292</int> 49 | <string key="NSFrame">{{20, 81}, {280, 21}}</string> 50 | <reference key="NSSuperview" ref="191373211"/> 51 | <reference key="NSWindow"/> 52 | <bool key="IBUIOpaque">NO</bool> 53 | <bool key="IBUIClipsSubviews">YES</bool> 54 | <int key="IBUIContentMode">7</int> 55 | <bool key="IBUIUserInteractionEnabled">NO</bool> 56 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 57 | <string key="IBUIText">Label</string> 58 | <object class="NSColor" key="IBUITextColor" id="66192541"> 59 | <int key="NSColorSpace">1</int> 60 | <bytes key="NSRGB">MCAwIDAAA</bytes> 61 | </object> 62 | <nil key="IBUIHighlightedColor"/> 63 | <int key="IBUIBaselineAdjustment">1</int> 64 | <float key="IBUIMinimumFontSize">10</float> 65 | </object> 66 | <object class="IBUILabel" id="14843902"> 67 | <reference key="NSNextResponder" ref="191373211"/> 68 | <int key="NSvFlags">292</int> 69 | <string key="NSFrame">{{20, 132}, {280, 21}}</string> 70 | <reference key="NSSuperview" ref="191373211"/> 71 | <reference key="NSWindow"/> 72 | <bool key="IBUIOpaque">NO</bool> 73 | <bool key="IBUIClipsSubviews">YES</bool> 74 | <int key="IBUIContentMode">7</int> 75 | <bool key="IBUIUserInteractionEnabled">NO</bool> 76 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 77 | <string key="IBUIText">Label</string> 78 | <reference key="IBUITextColor" ref="66192541"/> 79 | <nil key="IBUIHighlightedColor"/> 80 | <int key="IBUIBaselineAdjustment">1</int> 81 | <float key="IBUIMinimumFontSize">10</float> 82 | </object> 83 | <object class="IBUILabel" id="888442771"> 84 | <reference key="NSNextResponder" ref="191373211"/> 85 | <int key="NSvFlags">292</int> 86 | <string key="NSFrame">{{20, 180}, {280, 21}}</string> 87 | <reference key="NSSuperview" ref="191373211"/> 88 | <reference key="NSWindow"/> 89 | <bool key="IBUIOpaque">NO</bool> 90 | <bool key="IBUIClipsSubviews">YES</bool> 91 | <int key="IBUIContentMode">7</int> 92 | <bool key="IBUIUserInteractionEnabled">NO</bool> 93 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 94 | <string key="IBUIText">Label</string> 95 | <reference key="IBUITextColor" ref="66192541"/> 96 | <nil key="IBUIHighlightedColor"/> 97 | <int key="IBUIBaselineAdjustment">1</int> 98 | <float key="IBUIMinimumFontSize">10</float> 99 | </object> 100 | <object class="IBUIButton" id="80039017"> 101 | <reference key="NSNextResponder" ref="191373211"/> 102 | <int key="NSvFlags">292</int> 103 | <string key="NSFrame">{{228, 275}, {72, 37}}</string> 104 | <reference key="NSSuperview" ref="191373211"/> 105 | <reference key="NSWindow"/> 106 | <bool key="IBUIOpaque">NO</bool> 107 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 108 | <int key="IBUIContentHorizontalAlignment">0</int> 109 | <int key="IBUIContentVerticalAlignment">0</int> 110 | <object class="NSFont" key="IBUIFont"> 111 | <string key="NSName">Helvetica-Bold</string> 112 | <double key="NSSize">15</double> 113 | <int key="NSfFlags">16</int> 114 | </object> 115 | <int key="IBUIButtonType">1</int> 116 | <object class="NSColor" key="IBUIHighlightedTitleColor"> 117 | <int key="NSColorSpace">3</int> 118 | <bytes key="NSWhite">MQA</bytes> 119 | </object> 120 | <object class="NSColor" key="IBUINormalTitleColor"> 121 | <int key="NSColorSpace">1</int> 122 | <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes> 123 | </object> 124 | <object class="NSColor" key="IBUINormalTitleShadowColor"> 125 | <int key="NSColorSpace">3</int> 126 | <bytes key="NSWhite">MC41AA</bytes> 127 | </object> 128 | </object> 129 | </object> 130 | <string key="NSFrame">{{0, 20}, {320, 460}}</string> 131 | <reference key="NSSuperview"/> 132 | <reference key="NSWindow"/> 133 | <object class="NSColor" key="IBUIBackgroundColor"> 134 | <int key="NSColorSpace">3</int> 135 | <bytes key="NSWhite">MQA</bytes> 136 | <object class="NSColorSpace" key="NSCustomColorSpace"> 137 | <int key="NSID">2</int> 138 | </object> 139 | </object> 140 | <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> 141 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> 142 | </object> 143 | </object> 144 | <object class="IBObjectContainer" key="IBDocument.Objects"> 145 | <object class="NSMutableArray" key="connectionRecords"> 146 | <bool key="EncodedWithXMLCoder">YES</bool> 147 | <object class="IBConnectionRecord"> 148 | <object class="IBCocoaTouchOutletConnection" key="connection"> 149 | <string key="label">view</string> 150 | <reference key="source" ref="372490531"/> 151 | <reference key="destination" ref="191373211"/> 152 | </object> 153 | <int key="connectionID">3</int> 154 | </object> 155 | <object class="IBConnectionRecord"> 156 | <object class="IBCocoaTouchOutletConnection" key="connection"> 157 | <string key="label">treeIDLable</string> 158 | <reference key="source" ref="372490531"/> 159 | <reference key="destination" ref="945905314"/> 160 | </object> 161 | <int key="connectionID">7</int> 162 | </object> 163 | <object class="IBConnectionRecord"> 164 | <object class="IBCocoaTouchOutletConnection" key="connection"> 165 | <string key="label">treeKindLable</string> 166 | <reference key="source" ref="372490531"/> 167 | <reference key="destination" ref="14843902"/> 168 | </object> 169 | <int key="connectionID">8</int> 170 | </object> 171 | <object class="IBConnectionRecord"> 172 | <object class="IBCocoaTouchOutletConnection" key="connection"> 173 | <string key="label">treeAddressLable</string> 174 | <reference key="source" ref="372490531"/> 175 | <reference key="destination" ref="888442771"/> 176 | </object> 177 | <int key="connectionID">9</int> 178 | </object> 179 | <object class="IBConnectionRecord"> 180 | <object class="IBCocoaTouchEventConnection" key="connection"> 181 | <string key="label">buttonUse:</string> 182 | <reference key="source" ref="80039017"/> 183 | <reference key="destination" ref="372490531"/> 184 | <int key="IBEventType">7</int> 185 | </object> 186 | <int key="connectionID">11</int> 187 | </object> 188 | </object> 189 | <object class="IBMutableOrderedSet" key="objectRecords"> 190 | <object class="NSArray" key="orderedObjects"> 191 | <bool key="EncodedWithXMLCoder">YES</bool> 192 | <object class="IBObjectRecord"> 193 | <int key="objectID">0</int> 194 | <reference key="object" ref="0"/> 195 | <reference key="children" ref="1000"/> 196 | <nil key="parent"/> 197 | </object> 198 | <object class="IBObjectRecord"> 199 | <int key="objectID">1</int> 200 | <reference key="object" ref="191373211"/> 201 | <object class="NSMutableArray" key="children"> 202 | <bool key="EncodedWithXMLCoder">YES</bool> 203 | <reference ref="945905314"/> 204 | <reference ref="14843902"/> 205 | <reference ref="888442771"/> 206 | <reference ref="80039017"/> 207 | </object> 208 | <reference key="parent" ref="0"/> 209 | </object> 210 | <object class="IBObjectRecord"> 211 | <int key="objectID">-1</int> 212 | <reference key="object" ref="372490531"/> 213 | <reference key="parent" ref="0"/> 214 | <string key="objectName">File's Owner</string> 215 | </object> 216 | <object class="IBObjectRecord"> 217 | <int key="objectID">-2</int> 218 | <reference key="object" ref="975951072"/> 219 | <reference key="parent" ref="0"/> 220 | </object> 221 | <object class="IBObjectRecord"> 222 | <int key="objectID">4</int> 223 | <reference key="object" ref="945905314"/> 224 | <reference key="parent" ref="191373211"/> 225 | </object> 226 | <object class="IBObjectRecord"> 227 | <int key="objectID">5</int> 228 | <reference key="object" ref="14843902"/> 229 | <reference key="parent" ref="191373211"/> 230 | </object> 231 | <object class="IBObjectRecord"> 232 | <int key="objectID">6</int> 233 | <reference key="object" ref="888442771"/> 234 | <reference key="parent" ref="191373211"/> 235 | </object> 236 | <object class="IBObjectRecord"> 237 | <int key="objectID">10</int> 238 | <reference key="object" ref="80039017"/> 239 | <reference key="parent" ref="191373211"/> 240 | </object> 241 | </object> 242 | </object> 243 | <object class="NSMutableDictionary" key="flattenedProperties"> 244 | <bool key="EncodedWithXMLCoder">YES</bool> 245 | <object class="NSArray" key="dict.sortedKeys"> 246 | <bool key="EncodedWithXMLCoder">YES</bool> 247 | <string>-1.CustomClassName</string> 248 | <string>-2.CustomClassName</string> 249 | <string>1.IBEditorWindowLastContentRect</string> 250 | <string>1.IBPluginDependency</string> 251 | <string>10.IBPluginDependency</string> 252 | <string>4.IBPluginDependency</string> 253 | <string>5.IBPluginDependency</string> 254 | <string>6.IBPluginDependency</string> 255 | </object> 256 | <object class="NSMutableArray" key="dict.values"> 257 | <bool key="EncodedWithXMLCoder">YES</bool> 258 | <string>myIndexViewController</string> 259 | <string>UIResponder</string> 260 | <string>{{556, 412}, {320, 480}}</string> 261 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 262 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 263 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 264 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 265 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> 266 | </object> 267 | </object> 268 | <object class="NSMutableDictionary" key="unlocalizedProperties"> 269 | <bool key="EncodedWithXMLCoder">YES</bool> 270 | <reference key="dict.sortedKeys" ref="0"/> 271 | <reference key="dict.values" ref="0"/> 272 | </object> 273 | <nil key="activeLocalization"/> 274 | <object class="NSMutableDictionary" key="localizations"> 275 | <bool key="EncodedWithXMLCoder">YES</bool> 276 | <reference key="dict.sortedKeys" ref="0"/> 277 | <reference key="dict.values" ref="0"/> 278 | </object> 279 | <nil key="sourceID"/> 280 | <int key="maxID">11</int> 281 | </object> 282 | <object class="IBClassDescriber" key="IBDocument.Classes"> 283 | <object class="NSMutableArray" key="referencedPartialClassDescriptions"> 284 | <bool key="EncodedWithXMLCoder">YES</bool> 285 | <object class="IBPartialClassDescription"> 286 | <string key="className">myIndexViewController</string> 287 | <string key="superclassName">UIViewController</string> 288 | <object class="NSMutableDictionary" key="actions"> 289 | <string key="NS.key.0">buttonUse:</string> 290 | <string key="NS.object.0">id</string> 291 | </object> 292 | <object class="NSMutableDictionary" key="actionInfosByName"> 293 | <string key="NS.key.0">buttonUse:</string> 294 | <object class="IBActionInfo" key="NS.object.0"> 295 | <string key="name">buttonUse:</string> 296 | <string key="candidateClassName">id</string> 297 | </object> 298 | </object> 299 | <object class="NSMutableDictionary" key="outlets"> 300 | <bool key="EncodedWithXMLCoder">YES</bool> 301 | <object class="NSArray" key="dict.sortedKeys"> 302 | <bool key="EncodedWithXMLCoder">YES</bool> 303 | <string>treeAddressLable</string> 304 | <string>treeIDLable</string> 305 | <string>treeKindLable</string> 306 | </object> 307 | <object class="NSMutableArray" key="dict.values"> 308 | <bool key="EncodedWithXMLCoder">YES</bool> 309 | <string>UILabel</string> 310 | <string>UILabel</string> 311 | <string>UILabel</string> 312 | </object> 313 | </object> 314 | <object class="NSMutableDictionary" key="toOneOutletInfosByName"> 315 | <bool key="EncodedWithXMLCoder">YES</bool> 316 | <object class="NSArray" key="dict.sortedKeys"> 317 | <bool key="EncodedWithXMLCoder">YES</bool> 318 | <string>treeAddressLable</string> 319 | <string>treeIDLable</string> 320 | <string>treeKindLable</string> 321 | </object> 322 | <object class="NSMutableArray" key="dict.values"> 323 | <bool key="EncodedWithXMLCoder">YES</bool> 324 | <object class="IBToOneOutletInfo"> 325 | <string key="name">treeAddressLable</string> 326 | <string key="candidateClassName">UILabel</string> 327 | </object> 328 | <object class="IBToOneOutletInfo"> 329 | <string key="name">treeIDLable</string> 330 | <string key="candidateClassName">UILabel</string> 331 | </object> 332 | <object class="IBToOneOutletInfo"> 333 | <string key="name">treeKindLable</string> 334 | <string key="candidateClassName">UILabel</string> 335 | </object> 336 | </object> 337 | </object> 338 | <object class="IBClassDescriptionSource" key="sourceIdentifier"> 339 | <string key="majorKey">IBProjectSource</string> 340 | <string key="minorKey">./Classes/myIndexViewController.h</string> 341 | </object> 342 | </object> 343 | </object> 344 | </object> 345 | <int key="IBDocument.localizationMode">0</int> 346 | <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string> 347 | <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies"> 348 | <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string> 349 | <integer value="3000" key="NS.object.0"/> 350 | </object> 351 | <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> 352 | <int key="IBDocument.defaultPropertyAccessControl">3</int> 353 | <string key="IBCocoaTouchPluginVersion">301</string> 354 | </data> 355 | </archive> 356 | -------------------------------------------------------------------------------- /XMLUse.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C593811A1446294600CD2452 /* TreeModle.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = C59381181446294600CD2452 /* TreeModle.xcdatamodeld */; }; 11 | C59B09A91442B17F00398A74 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C59B09A81442B17F00398A74 /* UIKit.framework */; }; 12 | C59B09AB1442B17F00398A74 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C59B09AA1442B17F00398A74 /* Foundation.framework */; }; 13 | C59B09AD1442B17F00398A74 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C59B09AC1442B17F00398A74 /* CoreGraphics.framework */; }; 14 | C59B09B31442B18000398A74 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C59B09B11442B18000398A74 /* InfoPlist.strings */; }; 15 | C59B09B61442B18000398A74 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C59B09B51442B18000398A74 /* main.m */; }; 16 | C59B09B91442B18000398A74 /* XMLUseAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C59B09B81442B18000398A74 /* XMLUseAppDelegate.m */; }; 17 | C59B09BC1442B18000398A74 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = C59B09BA1442B18000398A74 /* MainWindow.xib */; }; 18 | C59B09C31442B18000398A74 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C59B09A81442B17F00398A74 /* UIKit.framework */; }; 19 | C59B09C41442B18000398A74 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C59B09AA1442B17F00398A74 /* Foundation.framework */; }; 20 | C59B09C51442B18000398A74 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C59B09AC1442B17F00398A74 /* CoreGraphics.framework */; }; 21 | C59B09CD1442B18000398A74 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C59B09CB1442B18000398A74 /* InfoPlist.strings */; }; 22 | C59B09D01442B18000398A74 /* XMLUseTests.h in Resources */ = {isa = PBXBuildFile; fileRef = C59B09CF1442B18000398A74 /* XMLUseTests.h */; }; 23 | C59B09D21442B18000398A74 /* XMLUseTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C59B09D11442B18000398A74 /* XMLUseTests.m */; }; 24 | C59B09E01442B79F00398A74 /* XMLParser.m in Sources */ = {isa = PBXBuildFile; fileRef = C59B09DF1442B79F00398A74 /* XMLParser.m */; }; 25 | C59B09E31442C42000398A74 /* XMLList.m in Sources */ = {isa = PBXBuildFile; fileRef = C59B09E21442C42000398A74 /* XMLList.m */; }; 26 | C59B09EB1443603E00398A74 /* TreeUse.xml in Resources */ = {isa = PBXBuildFile; fileRef = C59B09EA1443603E00398A74 /* TreeUse.xml */; }; 27 | C59B0A2E1443E23800398A74 /* MyTableViewUse.m in Sources */ = {isa = PBXBuildFile; fileRef = C59B0A2D1443E23800398A74 /* MyTableViewUse.m */; }; 28 | C5BF6C7114441FBA007AE673 /* myIndexViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C5BF6C6F14441FBA007AE673 /* myIndexViewController.m */; }; 29 | C5BF6C7214441FBA007AE673 /* myIndexViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = C5BF6C7014441FBA007AE673 /* myIndexViewController.xib */; }; 30 | DDC64F9D14467B9100FB37DF /* CoreDataBaseUse.m in Sources */ = {isa = PBXBuildFile; fileRef = DDC64F9C14467B9100FB37DF /* CoreDataBaseUse.m */; }; 31 | DDC64FA014467C3800FB37DF /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDC64F9F14467C3800FB37DF /* CoreData.framework */; }; 32 | /* End PBXBuildFile section */ 33 | 34 | /* Begin PBXContainerItemProxy section */ 35 | C59B09C61442B18000398A74 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = C59B099B1442B17F00398A74 /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = C59B09A31442B17F00398A74; 40 | remoteInfo = XMLUse; 41 | }; 42 | /* End PBXContainerItemProxy section */ 43 | 44 | /* Begin PBXFileReference section */ 45 | C59381191446294600CD2452 /* TreeModle.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = TreeModle.xcdatamodel; sourceTree = "<group>"; }; 46 | C59B09A41442B17F00398A74 /* XMLUse.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XMLUse.app; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | C59B09A81442B17F00398A74 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 48 | C59B09AA1442B17F00398A74 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 49 | C59B09AC1442B17F00398A74 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 50 | C59B09B01442B17F00398A74 /* XMLUse-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "XMLUse-Info.plist"; sourceTree = "<group>"; }; 51 | C59B09B21442B18000398A74 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; 52 | C59B09B41442B18000398A74 /* XMLUse-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XMLUse-Prefix.pch"; sourceTree = "<group>"; }; 53 | C59B09B51442B18000398A74 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; 54 | C59B09B71442B18000398A74 /* XMLUseAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XMLUseAppDelegate.h; sourceTree = "<group>"; }; 55 | C59B09B81442B18000398A74 /* XMLUseAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XMLUseAppDelegate.m; sourceTree = "<group>"; }; 56 | C59B09BB1442B18000398A74 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = "<group>"; }; 57 | C59B09C21442B18000398A74 /* XMLUseTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XMLUseTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | C59B09CA1442B18000398A74 /* XMLUseTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "XMLUseTests-Info.plist"; sourceTree = "<group>"; }; 59 | C59B09CC1442B18000398A74 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; 60 | C59B09CE1442B18000398A74 /* XMLUseTests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XMLUseTests-Prefix.pch"; sourceTree = "<group>"; }; 61 | C59B09CF1442B18000398A74 /* XMLUseTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XMLUseTests.h; sourceTree = "<group>"; }; 62 | C59B09D11442B18000398A74 /* XMLUseTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XMLUseTests.m; sourceTree = "<group>"; }; 63 | C59B09DE1442B79F00398A74 /* XMLParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLParser.h; sourceTree = "<group>"; }; 64 | C59B09DF1442B79F00398A74 /* XMLParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XMLParser.m; sourceTree = "<group>"; }; 65 | C59B09E11442C42000398A74 /* XMLList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLList.h; sourceTree = "<group>"; }; 66 | C59B09E21442C42000398A74 /* XMLList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XMLList.m; sourceTree = "<group>"; }; 67 | C59B09EA1443603E00398A74 /* TreeUse.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = TreeUse.xml; path = ../TreeUse.xml; sourceTree = "<group>"; }; 68 | C59B0A2C1443E23700398A74 /* MyTableViewUse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyTableViewUse.h; sourceTree = "<group>"; }; 69 | C59B0A2D1443E23800398A74 /* MyTableViewUse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyTableViewUse.m; sourceTree = "<group>"; }; 70 | C5BF6C6E14441FBA007AE673 /* myIndexViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = myIndexViewController.h; sourceTree = "<group>"; }; 71 | C5BF6C6F14441FBA007AE673 /* myIndexViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = myIndexViewController.m; sourceTree = "<group>"; }; 72 | C5BF6C7014441FBA007AE673 /* myIndexViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = myIndexViewController.xib; sourceTree = "<group>"; }; 73 | DDC64F9B14467B9100FB37DF /* CoreDataBaseUse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CoreDataBaseUse.h; sourceTree = "<group>"; }; 74 | DDC64F9C14467B9100FB37DF /* CoreDataBaseUse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CoreDataBaseUse.m; sourceTree = "<group>"; }; 75 | DDC64F9F14467C3800FB37DF /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; 76 | /* End PBXFileReference section */ 77 | 78 | /* Begin PBXFrameworksBuildPhase section */ 79 | C59B09A11442B17F00398A74 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | DDC64FA014467C3800FB37DF /* CoreData.framework in Frameworks */, 84 | C59B09A91442B17F00398A74 /* UIKit.framework in Frameworks */, 85 | C59B09AB1442B17F00398A74 /* Foundation.framework in Frameworks */, 86 | C59B09AD1442B17F00398A74 /* CoreGraphics.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | C59B09BE1442B18000398A74 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | C59B09C31442B18000398A74 /* UIKit.framework in Frameworks */, 95 | C59B09C41442B18000398A74 /* Foundation.framework in Frameworks */, 96 | C59B09C51442B18000398A74 /* CoreGraphics.framework in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | /* End PBXFrameworksBuildPhase section */ 101 | 102 | /* Begin PBXGroup section */ 103 | C59B09991442B17F00398A74 = { 104 | isa = PBXGroup; 105 | children = ( 106 | DDC64F9F14467C3800FB37DF /* CoreData.framework */, 107 | C59B09AE1442B17F00398A74 /* XMLUse */, 108 | C59B09C81442B18000398A74 /* XMLUseTests */, 109 | C59B09A71442B17F00398A74 /* Frameworks */, 110 | C59B09A51442B17F00398A74 /* Products */, 111 | ); 112 | sourceTree = "<group>"; 113 | }; 114 | C59B09A51442B17F00398A74 /* Products */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | C59B09A41442B17F00398A74 /* XMLUse.app */, 118 | C59B09C21442B18000398A74 /* XMLUseTests.octest */, 119 | ); 120 | name = Products; 121 | sourceTree = "<group>"; 122 | }; 123 | C59B09A71442B17F00398A74 /* Frameworks */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | C59B09A81442B17F00398A74 /* UIKit.framework */, 127 | C59B09AA1442B17F00398A74 /* Foundation.framework */, 128 | C59B09AC1442B17F00398A74 /* CoreGraphics.framework */, 129 | ); 130 | name = Frameworks; 131 | sourceTree = "<group>"; 132 | }; 133 | C59B09AE1442B17F00398A74 /* XMLUse */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | C59B09EA1443603E00398A74 /* TreeUse.xml */, 137 | C59B09B71442B18000398A74 /* XMLUseAppDelegate.h */, 138 | C59B09B81442B18000398A74 /* XMLUseAppDelegate.m */, 139 | C59B09DE1442B79F00398A74 /* XMLParser.h */, 140 | C59B09DF1442B79F00398A74 /* XMLParser.m */, 141 | C59B09BA1442B18000398A74 /* MainWindow.xib */, 142 | C59B09E11442C42000398A74 /* XMLList.h */, 143 | C59B09E21442C42000398A74 /* XMLList.m */, 144 | C59B0A2C1443E23700398A74 /* MyTableViewUse.h */, 145 | C59B0A2D1443E23800398A74 /* MyTableViewUse.m */, 146 | C5BF6C6E14441FBA007AE673 /* myIndexViewController.h */, 147 | C5BF6C6F14441FBA007AE673 /* myIndexViewController.m */, 148 | C5BF6C7014441FBA007AE673 /* myIndexViewController.xib */, 149 | DDC64F9B14467B9100FB37DF /* CoreDataBaseUse.h */, 150 | DDC64F9C14467B9100FB37DF /* CoreDataBaseUse.m */, 151 | C59381181446294600CD2452 /* TreeModle.xcdatamodeld */, 152 | C59B09AF1442B17F00398A74 /* Supporting Files */, 153 | ); 154 | path = XMLUse; 155 | sourceTree = "<group>"; 156 | }; 157 | C59B09AF1442B17F00398A74 /* Supporting Files */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | C59B09B01442B17F00398A74 /* XMLUse-Info.plist */, 161 | C59B09B11442B18000398A74 /* InfoPlist.strings */, 162 | C59B09B41442B18000398A74 /* XMLUse-Prefix.pch */, 163 | C59B09B51442B18000398A74 /* main.m */, 164 | ); 165 | name = "Supporting Files"; 166 | sourceTree = "<group>"; 167 | }; 168 | C59B09C81442B18000398A74 /* XMLUseTests */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | C59B09CF1442B18000398A74 /* XMLUseTests.h */, 172 | C59B09D11442B18000398A74 /* XMLUseTests.m */, 173 | C59B09C91442B18000398A74 /* Supporting Files */, 174 | ); 175 | path = XMLUseTests; 176 | sourceTree = "<group>"; 177 | }; 178 | C59B09C91442B18000398A74 /* Supporting Files */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | C59B09CA1442B18000398A74 /* XMLUseTests-Info.plist */, 182 | C59B09CB1442B18000398A74 /* InfoPlist.strings */, 183 | C59B09CE1442B18000398A74 /* XMLUseTests-Prefix.pch */, 184 | ); 185 | name = "Supporting Files"; 186 | sourceTree = "<group>"; 187 | }; 188 | /* End PBXGroup section */ 189 | 190 | /* Begin PBXNativeTarget section */ 191 | C59B09A31442B17F00398A74 /* XMLUse */ = { 192 | isa = PBXNativeTarget; 193 | buildConfigurationList = C59B09D51442B18000398A74 /* Build configuration list for PBXNativeTarget "XMLUse" */; 194 | buildPhases = ( 195 | C59B09A01442B17F00398A74 /* Sources */, 196 | C59B09A11442B17F00398A74 /* Frameworks */, 197 | C59B09A21442B17F00398A74 /* Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | ); 203 | name = XMLUse; 204 | productName = XMLUse; 205 | productReference = C59B09A41442B17F00398A74 /* XMLUse.app */; 206 | productType = "com.apple.product-type.application"; 207 | }; 208 | C59B09C11442B18000398A74 /* XMLUseTests */ = { 209 | isa = PBXNativeTarget; 210 | buildConfigurationList = C59B09D81442B18000398A74 /* Build configuration list for PBXNativeTarget "XMLUseTests" */; 211 | buildPhases = ( 212 | C59B09BD1442B18000398A74 /* Sources */, 213 | C59B09BE1442B18000398A74 /* Frameworks */, 214 | C59B09BF1442B18000398A74 /* Resources */, 215 | C59B09C01442B18000398A74 /* ShellScript */, 216 | ); 217 | buildRules = ( 218 | ); 219 | dependencies = ( 220 | C59B09C71442B18000398A74 /* PBXTargetDependency */, 221 | ); 222 | name = XMLUseTests; 223 | productName = XMLUseTests; 224 | productReference = C59B09C21442B18000398A74 /* XMLUseTests.octest */; 225 | productType = "com.apple.product-type.bundle"; 226 | }; 227 | /* End PBXNativeTarget section */ 228 | 229 | /* Begin PBXProject section */ 230 | C59B099B1442B17F00398A74 /* Project object */ = { 231 | isa = PBXProject; 232 | buildConfigurationList = C59B099E1442B17F00398A74 /* Build configuration list for PBXProject "XMLUse" */; 233 | compatibilityVersion = "Xcode 3.2"; 234 | developmentRegion = English; 235 | hasScannedForEncodings = 0; 236 | knownRegions = ( 237 | en, 238 | ); 239 | mainGroup = C59B09991442B17F00398A74; 240 | productRefGroup = C59B09A51442B17F00398A74 /* Products */; 241 | projectDirPath = ""; 242 | projectRoot = ""; 243 | targets = ( 244 | C59B09A31442B17F00398A74 /* XMLUse */, 245 | C59B09C11442B18000398A74 /* XMLUseTests */, 246 | ); 247 | }; 248 | /* End PBXProject section */ 249 | 250 | /* Begin PBXResourcesBuildPhase section */ 251 | C59B09A21442B17F00398A74 /* Resources */ = { 252 | isa = PBXResourcesBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | C59B09B31442B18000398A74 /* InfoPlist.strings in Resources */, 256 | C59B09BC1442B18000398A74 /* MainWindow.xib in Resources */, 257 | C59B09EB1443603E00398A74 /* TreeUse.xml in Resources */, 258 | C5BF6C7214441FBA007AE673 /* myIndexViewController.xib in Resources */, 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | C59B09BF1442B18000398A74 /* Resources */ = { 263 | isa = PBXResourcesBuildPhase; 264 | buildActionMask = 2147483647; 265 | files = ( 266 | C59B09CD1442B18000398A74 /* InfoPlist.strings in Resources */, 267 | C59B09D01442B18000398A74 /* XMLUseTests.h in Resources */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | /* End PBXResourcesBuildPhase section */ 272 | 273 | /* Begin PBXShellScriptBuildPhase section */ 274 | C59B09C01442B18000398A74 /* ShellScript */ = { 275 | isa = PBXShellScriptBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | ); 279 | inputPaths = ( 280 | ); 281 | outputPaths = ( 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | shellPath = /bin/sh; 285 | shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; 286 | }; 287 | /* End PBXShellScriptBuildPhase section */ 288 | 289 | /* Begin PBXSourcesBuildPhase section */ 290 | C59B09A01442B17F00398A74 /* Sources */ = { 291 | isa = PBXSourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | C59B09B61442B18000398A74 /* main.m in Sources */, 295 | C59B09B91442B18000398A74 /* XMLUseAppDelegate.m in Sources */, 296 | C59B09E01442B79F00398A74 /* XMLParser.m in Sources */, 297 | C59B09E31442C42000398A74 /* XMLList.m in Sources */, 298 | C59B0A2E1443E23800398A74 /* MyTableViewUse.m in Sources */, 299 | C5BF6C7114441FBA007AE673 /* myIndexViewController.m in Sources */, 300 | C593811A1446294600CD2452 /* TreeModle.xcdatamodeld in Sources */, 301 | DDC64F9D14467B9100FB37DF /* CoreDataBaseUse.m in Sources */, 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | }; 305 | C59B09BD1442B18000398A74 /* Sources */ = { 306 | isa = PBXSourcesBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | C59B09D21442B18000398A74 /* XMLUseTests.m in Sources */, 310 | ); 311 | runOnlyForDeploymentPostprocessing = 0; 312 | }; 313 | /* End PBXSourcesBuildPhase section */ 314 | 315 | /* Begin PBXTargetDependency section */ 316 | C59B09C71442B18000398A74 /* PBXTargetDependency */ = { 317 | isa = PBXTargetDependency; 318 | target = C59B09A31442B17F00398A74 /* XMLUse */; 319 | targetProxy = C59B09C61442B18000398A74 /* PBXContainerItemProxy */; 320 | }; 321 | /* End PBXTargetDependency section */ 322 | 323 | /* Begin PBXVariantGroup section */ 324 | C59B09B11442B18000398A74 /* InfoPlist.strings */ = { 325 | isa = PBXVariantGroup; 326 | children = ( 327 | C59B09B21442B18000398A74 /* en */, 328 | ); 329 | name = InfoPlist.strings; 330 | sourceTree = "<group>"; 331 | }; 332 | C59B09BA1442B18000398A74 /* MainWindow.xib */ = { 333 | isa = PBXVariantGroup; 334 | children = ( 335 | C59B09BB1442B18000398A74 /* en */, 336 | ); 337 | name = MainWindow.xib; 338 | sourceTree = "<group>"; 339 | }; 340 | C59B09CB1442B18000398A74 /* InfoPlist.strings */ = { 341 | isa = PBXVariantGroup; 342 | children = ( 343 | C59B09CC1442B18000398A74 /* en */, 344 | ); 345 | name = InfoPlist.strings; 346 | sourceTree = "<group>"; 347 | }; 348 | /* End PBXVariantGroup section */ 349 | 350 | /* Begin XCBuildConfiguration section */ 351 | C59B09D31442B18000398A74 /* Debug */ = { 352 | isa = XCBuildConfiguration; 353 | buildSettings = { 354 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 355 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 356 | GCC_C_LANGUAGE_STANDARD = gnu99; 357 | GCC_OPTIMIZATION_LEVEL = 0; 358 | GCC_PREPROCESSOR_DEFINITIONS = DEBUG; 359 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 360 | GCC_VERSION = com.apple.compilers.llvmgcc42; 361 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 362 | GCC_WARN_UNUSED_VARIABLE = YES; 363 | IPHONEOS_DEPLOYMENT_TARGET = 4.3; 364 | SDKROOT = iphoneos; 365 | }; 366 | name = Debug; 367 | }; 368 | C59B09D41442B18000398A74 /* Release */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 372 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 373 | GCC_C_LANGUAGE_STANDARD = gnu99; 374 | GCC_VERSION = com.apple.compilers.llvmgcc42; 375 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 376 | GCC_WARN_UNUSED_VARIABLE = YES; 377 | IPHONEOS_DEPLOYMENT_TARGET = 4.3; 378 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 379 | SDKROOT = iphoneos; 380 | }; 381 | name = Release; 382 | }; 383 | C59B09D61442B18000398A74 /* Debug */ = { 384 | isa = XCBuildConfiguration; 385 | buildSettings = { 386 | ALWAYS_SEARCH_USER_PATHS = NO; 387 | COPY_PHASE_STRIP = NO; 388 | GCC_DYNAMIC_NO_PIC = NO; 389 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 390 | GCC_PREFIX_HEADER = "XMLUse/XMLUse-Prefix.pch"; 391 | INFOPLIST_FILE = "XMLUse/XMLUse-Info.plist"; 392 | PRODUCT_NAME = "$(TARGET_NAME)"; 393 | WRAPPER_EXTENSION = app; 394 | }; 395 | name = Debug; 396 | }; 397 | C59B09D71442B18000398A74 /* Release */ = { 398 | isa = XCBuildConfiguration; 399 | buildSettings = { 400 | ALWAYS_SEARCH_USER_PATHS = NO; 401 | COPY_PHASE_STRIP = YES; 402 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 403 | GCC_PREFIX_HEADER = "XMLUse/XMLUse-Prefix.pch"; 404 | INFOPLIST_FILE = "XMLUse/XMLUse-Info.plist"; 405 | PRODUCT_NAME = "$(TARGET_NAME)"; 406 | VALIDATE_PRODUCT = YES; 407 | WRAPPER_EXTENSION = app; 408 | }; 409 | name = Release; 410 | }; 411 | C59B09D91442B18000398A74 /* Debug */ = { 412 | isa = XCBuildConfiguration; 413 | buildSettings = { 414 | ALWAYS_SEARCH_USER_PATHS = NO; 415 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/XMLUse.app/XMLUse"; 416 | FRAMEWORK_SEARCH_PATHS = ( 417 | "$(SDKROOT)/Developer/Library/Frameworks", 418 | "$(DEVELOPER_LIBRARY_DIR)/Frameworks", 419 | ); 420 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 421 | GCC_PREFIX_HEADER = "XMLUseTests/XMLUseTests-Prefix.pch"; 422 | INFOPLIST_FILE = "XMLUseTests/XMLUseTests-Info.plist"; 423 | OTHER_LDFLAGS = ( 424 | "-framework", 425 | SenTestingKit, 426 | ); 427 | PRODUCT_NAME = "$(TARGET_NAME)"; 428 | TEST_HOST = "$(BUNDLE_LOADER)"; 429 | WRAPPER_EXTENSION = octest; 430 | }; 431 | name = Debug; 432 | }; 433 | C59B09DA1442B18000398A74 /* Release */ = { 434 | isa = XCBuildConfiguration; 435 | buildSettings = { 436 | ALWAYS_SEARCH_USER_PATHS = NO; 437 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/XMLUse.app/XMLUse"; 438 | FRAMEWORK_SEARCH_PATHS = ( 439 | "$(SDKROOT)/Developer/Library/Frameworks", 440 | "$(DEVELOPER_LIBRARY_DIR)/Frameworks", 441 | ); 442 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 443 | GCC_PREFIX_HEADER = "XMLUseTests/XMLUseTests-Prefix.pch"; 444 | INFOPLIST_FILE = "XMLUseTests/XMLUseTests-Info.plist"; 445 | OTHER_LDFLAGS = ( 446 | "-framework", 447 | SenTestingKit, 448 | ); 449 | PRODUCT_NAME = "$(TARGET_NAME)"; 450 | TEST_HOST = "$(BUNDLE_LOADER)"; 451 | WRAPPER_EXTENSION = octest; 452 | }; 453 | name = Release; 454 | }; 455 | /* End XCBuildConfiguration section */ 456 | 457 | /* Begin XCConfigurationList section */ 458 | C59B099E1442B17F00398A74 /* Build configuration list for PBXProject "XMLUse" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | C59B09D31442B18000398A74 /* Debug */, 462 | C59B09D41442B18000398A74 /* Release */, 463 | ); 464 | defaultConfigurationIsVisible = 0; 465 | defaultConfigurationName = Release; 466 | }; 467 | C59B09D51442B18000398A74 /* Build configuration list for PBXNativeTarget "XMLUse" */ = { 468 | isa = XCConfigurationList; 469 | buildConfigurations = ( 470 | C59B09D61442B18000398A74 /* Debug */, 471 | C59B09D71442B18000398A74 /* Release */, 472 | ); 473 | defaultConfigurationIsVisible = 0; 474 | defaultConfigurationName = Release; 475 | }; 476 | C59B09D81442B18000398A74 /* Build configuration list for PBXNativeTarget "XMLUseTests" */ = { 477 | isa = XCConfigurationList; 478 | buildConfigurations = ( 479 | C59B09D91442B18000398A74 /* Debug */, 480 | C59B09DA1442B18000398A74 /* Release */, 481 | ); 482 | defaultConfigurationIsVisible = 0; 483 | defaultConfigurationName = Release; 484 | }; 485 | /* End XCConfigurationList section */ 486 | 487 | /* Begin XCVersionGroup section */ 488 | C59381181446294600CD2452 /* TreeModle.xcdatamodeld */ = { 489 | isa = XCVersionGroup; 490 | children = ( 491 | C59381191446294600CD2452 /* TreeModle.xcdatamodel */, 492 | ); 493 | currentVersion = C59381191446294600CD2452 /* TreeModle.xcdatamodel */; 494 | path = TreeModle.xcdatamodeld; 495 | sourceTree = "<group>"; 496 | versionGroupType = wrapper.xcdatamodel; 497 | }; 498 | /* End XCVersionGroup section */ 499 | }; 500 | rootObject = C59B099B1442B17F00398A74 /* Project object */; 501 | } 502 | --------------------------------------------------------------------------------