- Timestamp:
- 06/06/10 18:50:15 (2 years ago)
- Location:
- trunk/SapphireFrappliance
- Files:
-
- 15 modified
-
Browser/SapphireMarkMenu.m (modified) (7 diffs)
-
FRAppliance/SapphireConfirmPrompt.h (modified) (2 diffs)
-
FRAppliance/SapphireConfirmPrompt.m (modified) (2 diffs)
-
FRAppliance/SapphireWaitDisplay.h (modified) (2 diffs)
-
FRAppliance/SapphireWaitDisplay.m (modified) (2 diffs)
-
MetaData/Support/SapphireDirectory.h (modified) (1 diff)
-
MetaData/Support/SapphireDirectory.m (modified) (6 diffs)
-
MetaDataImporting/SapphirePosterChooser.h (modified) (1 diff)
-
MetaDataImporting/SapphirePosterChooser.m (modified) (2 diffs)
-
MetaDataImporting/SapphireSiteScraper.h (modified) (1 diff)
-
MetaDataImporting/SapphireSiteScraper.m (modified) (4 diffs)
-
Settings/SapphireCollectionSettings.h (modified) (1 diff)
-
Settings/SapphireRadioSetting.h (modified) (1 diff)
-
Settings/SapphireRadioSetting.m (modified) (3 diffs)
-
Settings/SapphireSettings.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/SapphireFrappliance/Browser/SapphireMarkMenu.m
r1269 r1270 436 436 SapphireWaitDisplay *wait = [[SapphireWaitDisplay alloc] initWithScene: [self scene] 437 437 title: BRLocalizedString(@"Getting artwork selection", @"Getting artwork selection") 438 invo kation: invoke];438 invocation: invoke]; 439 439 440 440 [invoke setArgument: &fileMeta atIndex: 2]; … … 456 456 [invoke retainArguments]; 457 457 [invoke setArgument:&fileMeta atIndex:2]; 458 [controller setRefreshInvo kation:invoke];458 [controller setRefreshInvocation:invoke]; 459 459 460 460 return [controller autorelease]; … … 673 673 break; 674 674 case COMMAND_RENAME_TO_PRETTY: 675 doSubtreeInvo kation(dirMeta, @selector(renameToPrettyName), nil);675 doSubtreeInvocation(dirMeta, @selector(renameToPrettyName), nil); 676 676 break; 677 677 case COMMAND_CUT_PATH: … … 686 686 [invoke setArgument:&dirMeta atIndex:2]; 687 687 688 SapphireWaitDisplay *wait = [[SapphireWaitDisplay alloc] initWithScene:[self scene] title:[NSString stringWithFormat:BRLocalizedString(@"Moving %@", @"parameter is file/dir that is being moved"), [movingPath lastPathComponent]] invo kation:invoke];688 SapphireWaitDisplay *wait = [[SapphireWaitDisplay alloc] initWithScene:[self scene] title:[NSString stringWithFormat:BRLocalizedString(@"Moving %@", @"parameter is file/dir that is being moved"), [movingPath lastPathComponent]] invocation:invoke]; 689 689 690 690 replaceController = [wait autorelease]; … … 699 699 [invoke retainArguments]; 700 700 701 SapphireConfirmPrompt *confirm = [[SapphireConfirmPrompt alloc] initWithScene:[self scene] title:BRLocalizedString(@"Delete Directory?", @"Delete Directory Prompt Title") subtitle:[NSString stringWithFormat:BRLocalizedString(@"Are you sure you wish to delete %@?", @"parameter is file/dir that is being deleted"), [[dirMeta path] lastPathComponent]] invo kation:invoke];701 SapphireConfirmPrompt *confirm = [[SapphireConfirmPrompt alloc] initWithScene:[self scene] title:BRLocalizedString(@"Delete Directory?", @"Delete Directory Prompt Title") subtitle:[NSString stringWithFormat:BRLocalizedString(@"Are you sure you wish to delete %@?", @"parameter is file/dir that is being deleted"), [[dirMeta path] lastPathComponent]] invocation:invoke]; 702 702 703 703 replaceController = [confirm autorelease]; … … 750 750 [invoke setTarget:self]; 751 751 752 SapphireWaitDisplay *wait = [[SapphireWaitDisplay alloc] initWithScene:[self scene] title:BRLocalizedString(@"Joining Files", @"Title for wait display while joining files") invo kation:invoke];752 SapphireWaitDisplay *wait = [[SapphireWaitDisplay alloc] initWithScene:[self scene] title:BRLocalizedString(@"Joining Files", @"Title for wait display while joining files") invocation:invoke]; 753 753 [invoke setArgument:&wait atIndex:2]; 754 754 … … 790 790 [invoke retainArguments]; 791 791 792 SapphireConfirmPrompt *confirm = [[SapphireConfirmPrompt alloc] initWithScene:[self scene] title:BRLocalizedString(@"Delete File?", @"Delete File Prompt Title") subtitle:[NSString stringWithFormat:BRLocalizedString(@"Are you sure you wish to delete %@?", @"parameter is file/dir that is being deleted"), [[fileMeta path] lastPathComponent]] invo kation:invoke];792 SapphireConfirmPrompt *confirm = [[SapphireConfirmPrompt alloc] initWithScene:[self scene] title:BRLocalizedString(@"Delete File?", @"Delete File Prompt Title") subtitle:[NSString stringWithFormat:BRLocalizedString(@"Are you sure you wish to delete %@?", @"parameter is file/dir that is being deleted"), [[fileMeta path] lastPathComponent]] invocation:invoke]; 793 793 794 794 replaceController = [confirm autorelease]; -
trunk/SapphireFrappliance/FRAppliance/SapphireConfirmPrompt.h
r1268 r1270 29 29 30 30 @interface SapphireConfirmPrompt : SapphireCenteredMenuController <SapphireLayoutDelegate>{ 31 NSInvocation *invoke; /*!< @brief The invo kation to make*/31 NSInvocation *invoke; /*!< @brief The invocation to make*/ 32 32 BRTextControl *subtitle; /*!< @brief The sub-title message*/ 33 33 NSString *subText; /*!< @brief The text of the sub-title message*/ … … 40 40 * @param title The title for the display 41 41 * @param sub The secondary title 42 * @param invo kation The invokation to make to start the process42 * @param invocation The invocation to make to start the process 43 43 */ 44 - (id)initWithScene:(BRRenderScene *)scene title:(NSString *)title subtitle:(NSString *)sub invo kation:(NSInvocation *)invokation;44 - (id)initWithScene:(BRRenderScene *)scene title:(NSString *)title subtitle:(NSString *)sub invocation:(NSInvocation *)invocation; 45 45 46 46 @end -
trunk/SapphireFrappliance/FRAppliance/SapphireConfirmPrompt.m
r1268 r1270 24 24 @implementation SapphireConfirmPrompt 25 25 26 - (id)initWithScene:(BRRenderScene *)scene title:(NSString *)title subtitle:(NSString *)sub invo kation:(NSInvocation *)invokation;26 - (id)initWithScene:(BRRenderScene *)scene title:(NSString *)title subtitle:(NSString *)sub invocation:(NSInvocation *)invocation; 27 27 { 28 28 self = [super initWithScene:scene]; … … 31 31 32 32 [self setListTitle:title]; 33 invoke = [invo kation retain];33 invoke = [invocation retain]; 34 34 [invoke retainArguments]; 35 35 subText = [sub retain]; -
trunk/SapphireFrappliance/FRAppliance/SapphireWaitDisplay.h
r767 r1270 25 25 BRWaitSpinnerControl *spinner; /*!< @brief The spinner*/ 26 26 BRTextControl *status; /*!< @brief Status message*/ 27 NSInvocation *invoke; /*!< @brief The invo kation to make*/27 NSInvocation *invoke; /*!< @brief The invocation to make*/ 28 28 BOOL runInThread; /*!< @brief run in a thread*/ 29 29 BOOL noPopWhenComplete; /*!< @brief don't pop the controller on completion*/ … … 36 36 * @param scene The scene 37 37 * @param title The title for the display 38 * @param invo kation The invokation to make to start the process38 * @param invocation The invocation to make to start the process 39 39 */ 40 - (id)initWithScene:(BRRenderScene *)scene title:(NSString *)title invo kation:(NSInvocation *)invokation;40 - (id)initWithScene:(BRRenderScene *)scene title:(NSString *)title invocation:(NSInvocation *)invocation; 41 41 42 42 /*! -
trunk/SapphireFrappliance/FRAppliance/SapphireWaitDisplay.m
r967 r1270 26 26 @implementation SapphireWaitDisplay 27 27 28 - (id) initWithScene:(BRRenderScene *)scene title:(NSString *)title invo kation:(NSInvocation *)invokation28 - (id) initWithScene:(BRRenderScene *)scene title:(NSString *)title invocation:(NSInvocation *)invocation 29 29 { 30 30 self = [super initWithScene:scene]; … … 33 33 34 34 [self setListTitle:title]; 35 invoke = [invo kation retain];35 invoke = [invocation retain]; 36 36 [invoke retainArguments]; 37 37 -
trunk/SapphireFrappliance/MetaData/Support/SapphireDirectory.h
r1251 r1270 188 188 * @brief Invoke a command on all files contained within this directory within filter 189 189 * 190 * @param fileInv The invo kation to invoke190 * @param fileInv The invocation to invoke 191 191 */ 192 192 - (void)invokeOnAllFiles:(NSInvocation *)fileInv; -
trunk/SapphireFrappliance/MetaData/Support/SapphireDirectory.m
r889 r1270 31 31 NSString *VIRTUAL_DIR_OSCAR_PATH = @"@MOVIES/Academy Award Winning"; 32 32 33 void doSubtreeInvo kation(id <SapphireDirectory> dir, SEL select, id object)33 void doSubtreeInvocation(id <SapphireDirectory> dir, SEL select, id object) 34 34 { 35 35 NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[[SapphireFileMetaData class] instanceMethodSignatureForSelector:select]]; … … 44 44 { 45 45 SEL select = @selector(setWatched:); 46 doSubtreeInvo kation(dir, select, [NSNumber numberWithBool:watched]);46 doSubtreeInvocation(dir, select, [NSNumber numberWithBool:watched]); 47 47 } 48 48 … … 50 50 { 51 51 SEL select = @selector(setFavorite:); 52 doSubtreeInvo kation(dir, select, [NSNumber numberWithBool:favorite]);52 doSubtreeInvocation(dir, select, [NSNumber numberWithBool:favorite]); 53 53 } 54 54 … … 56 56 { 57 57 SEL select = @selector(setToReimportFromMask:); 58 doSubtreeInvo kation(dir, select, [NSNumber numberWithInt:mask]);58 doSubtreeInvocation(dir, select, [NSNumber numberWithInt:mask]); 59 59 } 60 60 … … 62 62 { 63 63 SEL select = @selector(clearMetaData); 64 doSubtreeInvo kation(dir, select, nil);64 doSubtreeInvocation(dir, select, nil); 65 65 } 66 66 … … 68 68 { 69 69 SEL select = @selector(setToResetImportDecisions); 70 doSubtreeInvo kation(dir, select, nil);70 doSubtreeInvocation(dir, select, nil); 71 71 } -
trunk/SapphireFrappliance/MetaDataImporting/SapphirePosterChooser.h
r1204 r1270 47 47 48 48 /*! 49 * @brief Sets the invo kation to refresh49 * @brief Sets the invocation to refresh 50 50 * 51 * @param[in] invoke The invo kation to refresh51 * @param[in] invoke The invocation to refresh 52 52 */ 53 - (void)setRefreshInvo kation: (NSInvocation *)invoke;53 - (void)setRefreshInvocation: (NSInvocation *)invoke; 54 54 55 55 /*! -
trunk/SapphireFrappliance/MetaDataImporting/SapphirePosterChooser.m
r1251 r1270 124 124 } 125 125 126 - (void)setRefreshInvo kation:(NSInvocation *)invoke;126 - (void)setRefreshInvocation:(NSInvocation *)invoke; 127 127 { 128 128 [refreshInvoke release]; … … 526 526 SapphireWaitDisplay *wait = [[SapphireWaitDisplay alloc] initWithScene: [self scene] 527 527 title: BRLocalizedString(@"Getting artwork selection", @"Getting artwork selection") 528 invo kation: invoke];528 invocation: invoke]; 529 529 [[self stack] swapController:[wait autorelease]]; 530 530 } -
trunk/SapphireFrappliance/MetaDataImporting/SapphireSiteScraper.h
r1251 r1270 41 41 id referenceObject; 42 42 SapphireURLLoader *loader; 43 NSInvocation *finishedInvo kation;43 NSInvocation *finishedInvocation; 44 44 NSMutableSet *pendingUrlElements; 45 45 } -
trunk/SapphireFrappliance/MetaDataImporting/SapphireSiteScraper.m
r1132 r1270 47 47 myCopy->referenceObject = [referenceObject retain]; 48 48 myCopy->loader = [loader retain]; 49 myCopy->finishedInvo kation = [finishedInvokation retain];49 myCopy->finishedInvocation = [finishedInvocation retain]; 50 50 myCopy->pendingUrlElements = [pendingUrlElements retain]; 51 51 … … 59 59 [loader release]; 60 60 [pendingUrlElements release]; 61 [finishedInvo kation release];61 [finishedInvocation release]; 62 62 [super dealloc]; 63 63 } … … 113 113 if([urlsToFetch count] == 0) 114 114 { 115 [finishedInvo kation invoke];116 [finishedInvo kation release];117 finishedInvo kation = nil;115 [finishedInvocation invoke]; 116 [finishedInvocation release]; 117 finishedInvocation = nil; 118 118 } 119 119 else … … 139 139 document = [[NSXMLDocument alloc] initWithXMLString:xmlResults options:0 error:&error]; 140 140 141 [finishedInvo kation release];142 finishedInvo kation = [[NSInvocation invocationWithMethodSignature:[delegate methodSignatureForSelector:selector]] retain];143 [finishedInvo kation retainArguments];144 [finishedInvo kation setTarget:delegate];145 [finishedInvo kation setSelector:selector];146 [finishedInvo kation setArgument:&document atIndex:2];147 [finishedInvo kation setArgument:&referenceObject atIndex:3];141 [finishedInvocation release]; 142 finishedInvocation = [[NSInvocation invocationWithMethodSignature:[delegate methodSignatureForSelector:selector]] retain]; 143 [finishedInvocation retainArguments]; 144 [finishedInvocation setTarget:delegate]; 145 [finishedInvocation setSelector:selector]; 146 [finishedInvocation setArgument:&document atIndex:2]; 147 [finishedInvocation setArgument:&referenceObject atIndex:3]; 148 148 149 149 [self scanForURLs:document]; -
trunk/SapphireFrappliance/Settings/SapphireCollectionSettings.h
r541 r1270 27 27 * @brief The Settings specific to collections 28 28 * 29 * This is a bit abstract in its opperation. It is a SapphireMediaMenuController subclass that displays a list of collections, with or without a checkbox next to them, and a title. Finally, it has an invo kation for settings a value and getting a value.29 * This is a bit abstract in its opperation. It is a SapphireMediaMenuController subclass that displays a list of collections, with or without a checkbox next to them, and a title. Finally, it has an invocation for settings a value and getting a value. 30 30 */ 31 31 @interface SapphireCollectionSettings : SapphireMediaMenuController { 32 32 NSArray *collections; /*!< @brief The collections, in order*/ 33 33 NSManagedObjectContext *moc; /*!< @brief The context*/ 34 NSInvocation *setInv; /*!< @brief The set value invo kation*/35 NSInvocation *getInv; /*!< @brief The get value invo kation*/34 NSInvocation *setInv; /*!< @brief The set value invocation*/ 35 NSInvocation *getInv; /*!< @brief The get value invocation*/ 36 36 } 37 37 -
trunk/SapphireFrappliance/Settings/SapphireRadioSetting.h
r541 r1270 29 29 @interface SapphireRadioSetting : SapphireMediaMenuController { 30 30 NSArray *choices; /*!< @brief The choicess the user has to select from*/ 31 NSInvocation *settingInvo kation; /*!< @brief The invokation to set the choice*/32 NSInvocation *gettingInvo kation; /*!< @brief The invokation to get the choice*/31 NSInvocation *settingInvocation; /*!< @brief The invocation to set the choice*/ 32 NSInvocation *gettingInvocation; /*!< @brief The invocation to get the choice*/ 33 33 NSObject *target; /*!< @brief The target to set and get the choice*/ 34 34 int selected; /*!< @brief The current selected choice*/ -
trunk/SapphireFrappliance/Settings/SapphireRadioSetting.m
r739 r1270 40 40 { 41 41 [choices release]; 42 [gettingInvo kation release];43 [settingInvo kation release];42 [gettingInvocation release]; 43 [settingInvocation release]; 44 44 [super dealloc]; 45 45 } … … 47 47 - (void)setSettingSelector:(SEL)setter 48 48 { 49 [settingInvo kation release];50 settingInvo kation = [[NSInvocation invocationWithMethodSignature:[target methodSignatureForSelector:setter]] retain];51 [settingInvo kation setTarget:target];52 [settingInvo kation setSelector:setter];49 [settingInvocation release]; 50 settingInvocation = [[NSInvocation invocationWithMethodSignature:[target methodSignatureForSelector:setter]] retain]; 51 [settingInvocation setTarget:target]; 52 [settingInvocation setSelector:setter]; 53 53 } 54 54 55 55 - (void)setGettingSelector:(SEL)getter 56 56 { 57 [gettingInvo kation release];58 gettingInvo kation = [[NSInvocation invocationWithMethodSignature:[target methodSignatureForSelector:getter]] retain];59 [gettingInvo kation setTarget:target];60 [gettingInvo kation setSelector:getter];57 [gettingInvocation release]; 58 gettingInvocation = [[NSInvocation invocationWithMethodSignature:[target methodSignatureForSelector:getter]] retain]; 59 [gettingInvocation setTarget:target]; 60 [gettingInvocation setSelector:getter]; 61 61 62 [gettingInvo kation invoke];63 [gettingInvo kation getReturnValue:&selected];62 [gettingInvocation invoke]; 63 [gettingInvocation getReturnValue:&selected]; 64 64 [[self list] reload]; 65 65 } … … 123 123 { 124 124 // This is called when the user changed a setting 125 [settingInvo kation setArgument:&row atIndex:2];126 [settingInvo kation invoke];125 [settingInvocation setArgument:&row atIndex:2]; 126 [settingInvocation invoke]; 127 127 128 128 /*Redraw*/ -
trunk/SapphireFrappliance/Settings/SapphireSettings.m
r1269 r1270 473 473 question = [NSString stringWithFormat:BRLocalizedString(@"Do you want to delete the show path for %@?", @"Prompt for deleting a show's path, argument is show name"), [show name]]; 474 474 475 SapphireConfirmPrompt *prompt = [[SapphireConfirmPrompt alloc] initWithScene:[self scene] title:BRLocalizedString(@"Show Path", @"Show Path") subtitle:question invo kation:invoke];475 SapphireConfirmPrompt *prompt = [[SapphireConfirmPrompt alloc] initWithScene:[self scene] title:BRLocalizedString(@"Show Path", @"Show Path") subtitle:question invocation:invoke]; 476 476 return [prompt autorelease]; 477 477 }
