Switch to garbage collection to fix crash for NSTokenFieldCell

This commit is contained in:
Matthias Neeracher 2011-08-13 19:35:26 +02:00
parent 03c270a538
commit d795f92934
4 changed files with 7 additions and 7 deletions

View File

@ -346,6 +346,7 @@
950BB68B13F1F26200D8E669 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_ENABLE_OBJC_GC = required;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Medianno/Medianno-Prefix.pch";
INFOPLIST_FILE = "Medianno/Medianno-Info.plist";
@ -358,6 +359,7 @@
950BB68C13F1F26200D8E669 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_ENABLE_OBJC_GC = required;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Medianno/Medianno-Prefix.pch";
INFOPLIST_FILE = "Medianno/Medianno-Info.plist";

View File

@ -45,11 +45,6 @@
}];
}
- (void)dealloc
{
[media release];
}
- (IBAction)useModificationDates:(id)sender
{
for (NSMutableDictionary * m in media) {

View File

@ -26,7 +26,11 @@
[super windowDidLoad];
[mediaController setSortDescriptors:[NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"date" ascending:YES]]];
[annotationController setSortDescriptors:[NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"location" ascending:YES]]];
NSCell * tokenCell = [tokenFieldProto cell];
NSTokenFieldCell * tokenCellProto = [tokenFieldProto cell];
NSTokenFieldCell * tokenCell = [[NSTokenFieldCell alloc] init];
[tokenCell setDelegate:self];
[tokenCell setFont:[tokenCellProto font]];
[tokenCell setTokenizingCharacterSet:[NSCharacterSet characterSetWithCharactersInString:@";"]];
[tokenColumn setDataCell:tokenCell];
}

View File

@ -45,7 +45,6 @@
{
MADocWindow * windowController = [[MADocWindow alloc] initWithWindowNibName:[self windowNibName]];
[self addWindowController:windowController];
[windowController release];
}
+ (BOOL)autosavesInPlace