Changeset 11706 for lang/objective-c
- Timestamp:
- 05/16/08 21:42:40 (6 months ago)
- Location:
- lang/objective-c/HatebuCoreData
- Files:
-
- 5 added
- 5 modified
-
Bookmark.h (added)
-
Bookmark.m (added)
-
English.lproj/MainMenu.nib/designable.nib (added)
-
English.lproj/MainMenu.nib/keyedobjects.nib (modified) (previous)
-
HatebuCoreData.xcodeproj/project.pbxproj (modified) (4 diffs)
-
HatebuCoreData_AppDelegate.m (modified) (10 diffs)
-
HatebuCoreData_DataModel.xcdatamodel/elements (modified) (previous)
-
HatebuCoreData_DataModel.xcdatamodel/layout (modified) (previous)
-
NetworkProxy.h (added)
-
NetworkProxy.m (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-c/HatebuCoreData/HatebuCoreData.xcodeproj/project.pbxproj
r11653 r11706 13 13 8609D2700DDC212C00589FA4 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 8609D26E0DDC212C00589FA4 /* MainMenu.nib */; }; 14 14 8609DD8F0DDC0DF300E2B4DD /* BookmarkController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8609DD8E0DDC0DF300E2B4DD /* BookmarkController.m */; }; 15 8698C85D0DDD60B800294DC6 /* Bookmark.m in Sources */ = {isa = PBXBuildFile; fileRef = 8698C85C0DDD60B800294DC6 /* Bookmark.m */; }; 16 8698C8630DDD83AE00294DC6 /* NetworkProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8698C8620DDD83AE00294DC6 /* NetworkProxy.m */; }; 15 17 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; 16 18 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; … … 34 36 8609DD8D0DDC0DF300E2B4DD /* BookmarkController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BookmarkController.h; sourceTree = "<group>"; }; 35 37 8609DD8E0DDC0DF300E2B4DD /* BookmarkController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BookmarkController.m; sourceTree = "<group>"; }; 38 8698C85B0DDD60B800294DC6 /* Bookmark.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Bookmark.h; sourceTree = "<group>"; }; 39 8698C85C0DDD60B800294DC6 /* Bookmark.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Bookmark.m; sourceTree = "<group>"; }; 40 8698C8610DDD83AE00294DC6 /* NetworkProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetworkProxy.h; sourceTree = "<group>"; }; 41 8698C8620DDD83AE00294DC6 /* NetworkProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NetworkProxy.m; sourceTree = "<group>"; }; 36 42 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; }; 37 43 8D1107320486CEB800E47090 /* HatebuCoreData.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HatebuCoreData.app; sourceTree = BUILT_PRODUCTS_DIR; }; … … 59 65 8609DD8D0DDC0DF300E2B4DD /* BookmarkController.h */, 60 66 8609DD8E0DDC0DF300E2B4DD /* BookmarkController.m */, 67 8698C85B0DDD60B800294DC6 /* Bookmark.h */, 68 8698C85C0DDD60B800294DC6 /* Bookmark.m */, 69 8698C8610DDD83AE00294DC6 /* NetworkProxy.h */, 70 8698C8620DDD83AE00294DC6 /* NetworkProxy.m */, 61 71 ); 62 72 name = Classes; … … 198 208 860430920DDB0A4C007C1628 /* TagCountTransformer.m in Sources */, 199 209 8609DD8F0DDC0DF300E2B4DD /* BookmarkController.m in Sources */, 210 8698C85D0DDD60B800294DC6 /* Bookmark.m in Sources */, 211 8698C8630DDD83AE00294DC6 /* NetworkProxy.m in Sources */, 200 212 ); 201 213 runOnlyForDeploymentPostprocessing = 0; -
lang/objective-c/HatebuCoreData/HatebuCoreData_AppDelegate.m
r11652 r11706 12 12 @implementation HatebuCoreData_AppDelegate 13 13 14 15 14 /** 16 15 Returns the support folder for the application, used to store the Core Data … … 19 18 former cannot be found), the system's temporary directory. 20 19 */ 21 22 20 - (NSString *)applicationSupportFolder { 23 21 … … 27 25 } 28 26 29 30 27 /** 31 28 Creates, retains, and returns the managed object model for the application 32 29 by merging all of the models found in the application bundle. 33 30 */ 34 35 31 - (NSManagedObjectModel *)managedObjectModel { 36 32 … … 50 46 if necessary.) 51 47 */ 52 53 48 - (NSPersistentStoreCoordinator *) persistentStoreCoordinator { 54 49 … … 77 72 } 78 73 79 80 74 /** 81 75 Returns the managed object context for the application (which is already 82 76 bound to the persistent store coordinator for the application.) 83 77 */ 84 85 78 - (NSManagedObjectContext *) managedObjectContext { 86 79 … … 98 91 } 99 92 100 101 93 /** 102 94 Returns the NSUndoManager for the application. In this case, the manager 103 95 returned is that of the managed object context for the application. 104 96 */ 105 106 97 - (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window { 107 98 return [[self managedObjectContext] undoManager]; 108 99 } 109 110 100 111 101 /** … … 114 104 are presented to the user. 115 105 */ 116 117 106 - (IBAction) saveAction:(id)sender { 118 107 … … 129 118 before the application terminates. 130 119 */ 131 132 120 - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { 133 121 … … 176 164 Implementation of dealloc, to release the retained variables. 177 165 */ 178 179 166 - (void) dealloc { 180 181 167 [managedObjectContext release], managedObjectContext = nil; 182 168 [persistentStoreCoordinator release], persistentStoreCoordinator = nil; … … 186 172 187 173 - (void)addEntry:(NSXMLElement *)entry { 188 NSManagedObject *bmk = [NSEntityDescription insertNewObjectForEntityForName:@"Bookmark" inManagedObjectContext:[self managedObjectContext]]; 174 NSManagedObject *bmk = [NSEntityDescription 175 insertNewObjectForEntityForName:@"Bookmark" 176 inManagedObjectContext:[self managedObjectContext]]; 189 177 190 178 NSString *title = [[[entry elementsForName: @"title"] objectAtIndex:0] stringValue];
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)