Added a way to rename all the chapters in the format “Chapter <num>”.
This commit is contained in:
1 parent
16c6d59d4e
commit
9d56de3c2c
3 files changed
+44
-11
No files matched your search
@@ -106,6 +106,16 @@
|
||||
[[[[[self view]window] windowController] document] updateChangeCount:NSChangeDone];
|
||||
}
|
||||
|
||||
- (IBAction)renameChapters:(id)sender {
|
||||
[track.chapters enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
|
||||
NSString *title = [NSString stringWithFormat:@"Chapter %lu", idx + 1];
|
||||
[(MP42TextSample *)obj setTitle:title];
|
||||
}];
|
||||
|
||||
[chapterTableView reloadData];
|
||||
[[[[[self view] window] windowController] document] updateChangeCount:NSChangeDone];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[detailBoldAttr release];
|
||||
|
||||
Reference in new issue
Block a user