Commit 7ca52e79 authored by Dwight Perry's avatar Dwight Perry

Replaced test for os version

parent a54c2420
......@@ -167,9 +167,7 @@
[[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidBecomeMainNotification object:nil];
[_allSchemas release];
[_allAttributes release];
if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) {
[super dealloc];
[super dealloc];
}
}
......
......@@ -98,8 +98,7 @@ static NSComboBoxCell *_enumCell = nil;
- (void)dealloc
{
[_element release];
if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) {
[super dealloc];
[super dealloc];
}
}
......
......@@ -110,8 +110,7 @@
[_exporter release];
[_graph release];
if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) {
[super dealloc];
[super dealloc];
}
}
......
......@@ -143,8 +143,7 @@ NSMutableArray *_formatRenders = nil;
[_filename release];
[_formatRender release];
[_render release];
if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) {
[super dealloc];
[super dealloc];
}
}
......
......@@ -64,8 +64,7 @@ static GVFileNotificationCenter *_defaultCenter = nil;
- (void)dealloc
{
[_path release];
if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) {
[super dealloc];
[super dealloc];
}
}
......
......@@ -214,9 +214,7 @@ extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str);
[_graphAttributes release];
[_defaultNodeAttributes release];
[_defaultEdgeAttributes release];
if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) {
[super dealloc];
[super dealloc];
}
}
......
......@@ -56,8 +56,7 @@
- (void)dealloc
{
[_arguments release];
if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) {
[super dealloc];
[super dealloc];
}
}
......
......@@ -107,10 +107,15 @@
}
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"GVGraphDocumentDidChange" object:[self document]];
if ( NSAppKitVersionNumber <= NSAppKitVersionNumber10_6 ) {
[super dealloc];
}
char darwinStr[256];
size_t size = sizeof(darwinStr);
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"GVGraphDocumentDidChange" object:[self document]];
sysctlbyname("kern.osrelease", darwinStr, &size, NULL, 0);
NSString *darwinVer = [NSString stringWithCString:darwinStr encoding:NSASCIIStringEncoding];
NSString *baseVer = @"11";
if ([darwinVer compare:baseVer] < 0)
[super dealloc];
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment