Changeset 705
- Timestamp:
- 12/08/08 09:48:31 (1 month ago)
- Files:
-
- trunk/SapphireFrappliance/SapphireAllFileDataImporter.m (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireAllImporter.m (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireApplianceController.m (modified) (3 diffs)
- trunk/SapphireFrappliance/SapphireBrowser.m (modified) (3 diffs)
- trunk/SapphireFrappliance/SapphireFileDataImporter.m (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireImporterDataMenu.h (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireImporterDataMenu.m (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireMovieImporter.m (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireMultipleImporter.m (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireTVShowImporter.m (modified) (1 diff)
- trunk/SapphireFrappliance/SapphireXMLFileDataImporter.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SapphireFrappliance/SapphireAllFileDataImporter.m
r461 r705 68 68 } 69 69 70 - (void) wasExhumed ByPoppingController:(BRLayerController *) controller70 - (void) wasExhumed 71 71 { 72 [super wasExhumed ByPoppingController:controller];72 [super wasExhumed]; 73 73 } 74 74 trunk/SapphireFrappliance/SapphireAllImporter.m
r461 r705 54 54 } 55 55 56 - (void) wasExhumed ByPoppingController:(BRLayerController *) controller56 - (void) wasExhumed 57 57 { 58 [super wasExhumed ByPoppingController:controller];58 [super wasExhumed]; 59 59 } 60 60 trunk/SapphireFrappliance/SapphireApplianceController.m
r693 r705 141 141 [ret appendFormat:@"\n0x%X\t%@", [key pointerValue], [mapping objectForKey:key]]; 142 142 } 143 NSLog(@"%@", ret); 143 144 } 144 145 … … 301 302 } 302 303 303 - (void) wasPushed 304 { 305 // We've just been put on screen, the user can see this controller's content now 306 [self recreateMenu]; 307 [[self list] reload]; 308 // always call super 309 [super wasPushed]; 310 } 311 312 - (void) wasPopped 313 { 314 // The user pressed Menu, removing us from the screen 315 316 // always call super 317 [super wasPopped]; 318 } 319 320 - (void) wasBuriedByPushingController: (BRLayerController *) controller 321 { 322 // The user chose an option and this controller os no longer on screen 323 324 // always call super 325 [super wasBuriedByPushingController: controller]; 326 } 327 328 - (void) wasExhumedByPoppingController: (BRLayerController *) controller 304 - (void)doInitialPush 305 { 306 @try { 307 // We've just been put on screen, the user can see this controller's content now 308 [self recreateMenu]; 309 [[self list] reload]; 310 } 311 @catch (NSException * e) { 312 [SapphireApplianceController logException:e]; 313 } 314 @finally { 315 [super doInitialPush]; 316 } 317 } 318 319 - (void)doInitialExhume 329 320 { 330 321 // handle being revealed when the user presses Menu … … 335 326 336 327 // always call super 337 [super wasExhumedByPoppingController: controller];328 [super doInitialExhume]; 338 329 } 339 330 trunk/SapphireFrappliance/SapphireBrowser.m
r693 r705 169 169 } 170 170 171 - (void) wasPushed171 - (void)doInitialPush 172 172 { 173 173 // We've just been put on screen, the user can see this controller's content now … … 180 180 [SapphireApplianceController logException:e]; 181 181 } 182 // always call super 183 [super wasPushed]; 182 [super doInitialPush]; 183 } 184 185 - (void) wasPushed 186 { 187 [super wasPushed]; 184 188 /*Get metadata when we can*/ 185 189 [metaData resumeImport]; 186 190 } 187 191 188 - (void) wasPopped 189 { 190 // The user pressed Menu, removing us from the screen 191 // always call super 192 193 [super wasPopped]; 192 - (void)doInitialPop 193 { 194 194 /*Cancel everything we were doing*/ 195 195 [metaData cancelImport]; 196 196 cancelScan = YES; 197 197 [metaData setDelegate:nil]; 198 } 199 200 - (void) wasBuriedByPushingController: (BRLayerController *) controller 198 [super doInitialPop]; 199 } 200 201 - (void)doInitialBury 201 202 { 202 203 // The user chose an option and this controller is no longer on screen … … 207 208 208 209 // always call super 209 [super wasBuriedByPushingController: controller]; 210 } 211 212 - (void) wasExhumedByPoppingController: (BRLayerController *) controller 213 { 214 // handle being revealed when the user presses Menu 215 210 [super doInitialBury]; 211 } 212 213 - (void)doInitialExhume 214 { 216 215 /*Reload our display*/ 217 216 [self setNewPredicate:[SapphireApplianceController predicate]]; 218 219 // always call super 220 [super wasExhumedByPoppingController: controller]; 217 [super doInitialExhume]; 218 } 219 220 - (void)wasExhumed 221 { 222 // always call super 223 [super wasExhumed]; 221 224 /*Check to see if dir is empty*/ 222 225 if(fileCount + dirCount == 0) trunk/SapphireFrappliance/SapphireFileDataImporter.m
r461 r705 73 73 } 74 74 75 - (void) wasExhumed ByPoppingController: (BRLayerController *) controller75 - (void) wasExhumed 76 76 { 77 77 } trunk/SapphireFrappliance/SapphireImporterDataMenu.h
r693 r705 98 98 * 99 99 * Some importers present the user with other choices, so this lets the importer know that the "dialog" has completed. 100 *101 * @param controller The Controller which was on top102 100 */ 103 - (void) wasExhumed ByPoppingController: (BRLayerController *) controller;101 - (void) wasExhumed; 104 102 @end 105 103 trunk/SapphireFrappliance/SapphireImporterDataMenu.m
r693 r705 438 438 } 439 439 440 - (void) wasExhumedByPoppingController: (BRLayerController *) controller441 { 442 [importer wasExhumed ByPoppingController:controller];443 [super wasExhumed ByPoppingController:controller];440 - (void)wasExhumed 441 { 442 [importer wasExhumed]; 443 [super wasExhumed]; 444 444 } 445 445 trunk/SapphireFrappliance/SapphireMovieImporter.m
r693 r705 896 896 } 897 897 898 - (void) wasExhumedByPoppingController: (BRLayerController *) controller898 - (void)wasExhumed 899 899 { 900 900 /*See if it was a movie chooser*/ trunk/SapphireFrappliance/SapphireMultipleImporter.m
r461 r705 95 95 } 96 96 97 - (void) wasExhumed ByPoppingController:(BRLayerController *) controller97 - (void) wasExhumed 98 98 { 99 [importers makeObjectsPerformSelector:@selector(wasExhumed ByPoppingController:) withObject:controller];99 [importers makeObjectsPerformSelector:@selector(wasExhumed) withObject:nil]; 100 100 } 101 101 trunk/SapphireFrappliance/SapphireTVShowImporter.m
r693 r705 660 660 } 661 661 662 - (void) wasExhumed ByPoppingController: (BRLayerController *) controller662 - (void) wasExhumed 663 663 { 664 664 /*See if it was a show chooser*/ trunk/SapphireFrappliance/SapphireXMLFileDataImporter.m
r461 r705 220 220 } 221 221 222 - (void) wasExhumed ByPoppingController: (BRLayerController *) controller222 - (void) wasExhumed 223 223 { 224 224 }
