Changeset 11706 for lang/objective-c

Show
Ignore:
Timestamp:
05/16/08 21:42:40 (6 months ago)
Author:
mootoh
Message:

なんかいろいろ

Location:
lang/objective-c/HatebuCoreData
Files:
5 added
5 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-c/HatebuCoreData/HatebuCoreData.xcodeproj/project.pbxproj

    r11653 r11706  
    1313                8609D2700DDC212C00589FA4 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 8609D26E0DDC212C00589FA4 /* MainMenu.nib */; }; 
    1414                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 */; }; 
    1517                8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; 
    1618                8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; 
     
    3436                8609DD8D0DDC0DF300E2B4DD /* BookmarkController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BookmarkController.h; sourceTree = "<group>"; }; 
    3537                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>"; }; 
    3642                8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; }; 
    3743                8D1107320486CEB800E47090 /* HatebuCoreData.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HatebuCoreData.app; sourceTree = BUILT_PRODUCTS_DIR; }; 
     
    5965                                8609DD8D0DDC0DF300E2B4DD /* BookmarkController.h */, 
    6066                                8609DD8E0DDC0DF300E2B4DD /* BookmarkController.m */, 
     67                                8698C85B0DDD60B800294DC6 /* Bookmark.h */, 
     68                                8698C85C0DDD60B800294DC6 /* Bookmark.m */, 
     69                                8698C8610DDD83AE00294DC6 /* NetworkProxy.h */, 
     70                                8698C8620DDD83AE00294DC6 /* NetworkProxy.m */, 
    6171                        ); 
    6272                        name = Classes; 
     
    198208                                860430920DDB0A4C007C1628 /* TagCountTransformer.m in Sources */, 
    199209                                8609DD8F0DDC0DF300E2B4DD /* BookmarkController.m in Sources */, 
     210                                8698C85D0DDD60B800294DC6 /* Bookmark.m in Sources */, 
     211                                8698C8630DDD83AE00294DC6 /* NetworkProxy.m in Sources */, 
    200212                        ); 
    201213                        runOnlyForDeploymentPostprocessing = 0; 
  • lang/objective-c/HatebuCoreData/HatebuCoreData_AppDelegate.m

    r11652 r11706  
    1212@implementation HatebuCoreData_AppDelegate 
    1313 
    14  
    1514/** 
    1615 Returns the support folder for the application, used to store the Core Data 
     
    1918 former cannot be found), the system's temporary directory. 
    2019 */ 
    21  
    2220- (NSString *)applicationSupportFolder { 
    2321         
     
    2725} 
    2826 
    29  
    3027/** 
    3128 Creates, retains, and returns the managed object model for the application  
    3229 by merging all of the models found in the application bundle. 
    3330 */ 
    34  
    3531- (NSManagedObjectModel *)managedObjectModel { 
    3632         
     
    5046 if necessary.) 
    5147 */ 
    52  
    5348- (NSPersistentStoreCoordinator *) persistentStoreCoordinator { 
    5449         
     
    7772} 
    7873 
    79  
    8074/** 
    8175 Returns the managed object context for the application (which is already 
    8276 bound to the persistent store coordinator for the application.)  
    8377 */ 
    84  
    8578- (NSManagedObjectContext *) managedObjectContext { 
    8679         
     
    9891} 
    9992 
    100  
    10193/** 
    10294 Returns the NSUndoManager for the application.  In this case, the manager 
    10395 returned is that of the managed object context for the application. 
    10496 */ 
    105  
    10697- (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window { 
    10798    return [[self managedObjectContext] undoManager]; 
    10899} 
    109  
    110100 
    111101/** 
     
    114104 are presented to the user. 
    115105 */ 
    116  
    117106- (IBAction) saveAction:(id)sender { 
    118107         
     
    129118 before the application terminates. 
    130119 */ 
    131  
    132120- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { 
    133121         
     
    176164 Implementation of dealloc, to release the retained variables. 
    177165 */ 
    178  
    179166- (void) dealloc { 
    180          
    181167    [managedObjectContext release], managedObjectContext = nil; 
    182168    [persistentStoreCoordinator release], persistentStoreCoordinator = nil; 
     
    186172 
    187173- (void)addEntry:(NSXMLElement *)entry { 
    188         NSManagedObject *bmk = [NSEntityDescription insertNewObjectForEntityForName:@"Bookmark" inManagedObjectContext:[self managedObjectContext]]; 
     174        NSManagedObject *bmk = [NSEntityDescription 
     175    insertNewObjectForEntityForName:@"Bookmark" 
     176             inManagedObjectContext:[self managedObjectContext]]; 
    189177         
    190178        NSString *title = [[[entry elementsForName: @"title"] objectAtIndex:0] stringValue];