X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=macosx%2FChapterTitles.m;h=893c2dc22321d1cf89b7d8ba3bca3ca42d85e361;hb=240cf3308bf21be4d1918a71a5510d07e7d6d85b;hp=e957d3ee245cbe416774c69f171174bbdae91699;hpb=b613abc7d6ba8ae7d0e7b0a4a662b1677b4171cf;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/macosx/ChapterTitles.m b/macosx/ChapterTitles.m index e957d3ee..893c2dc2 100644 --- a/macosx/ChapterTitles.m +++ b/macosx/ChapterTitles.m @@ -61,7 +61,7 @@ - (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn - row:(int)rowIndex + row:(NSInteger)rowIndex { if(aTableColumn != nil && [[aTableColumn identifier] intValue] == 2) { @@ -80,9 +80,9 @@ - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn - row:(int)rowIndex + row:(NSInteger)rowIndex { - NSString *cellEntry; + NSString *cellEntry = @"__DATA ERROR__"; if([[aTableColumn identifier] intValue] == 1) { @@ -98,10 +98,6 @@ { cellEntry = [NSString stringWithUTF8String:chapter->title]; } - else - { - cellEntry = @"__DATA ERROR__"; - } } } @@ -115,11 +111,11 @@ a timer to avoid interfering with the chain of events that handles the edit. */ NSTableView *chapterTable = [notification object]; NSInteger column = [chapterTable editedColumn]; NSInteger row = [chapterTable editedRow]; - int textMovement; + NSInteger textMovement; // Edit the cell in the next row, same column row++; - textMovement = [[[notification userInfo] objectForKey:@"NSTextMovement"] intValue]; + textMovement = [[[notification userInfo] objectForKey:@"NSTextMovement"] integerValue]; if( textMovement == NSReturnTextMovement && row < [chapterTable numberOfRows] ) { NSArray *info = [NSArray arrayWithObjects:chapterTable,