Removed methods implemented by superclass.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10114 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-06-07 21:56:19 +00:00
parent 3b035626b2
commit 9642bac4ec

View file

@ -275,18 +275,6 @@
[super dealloc];
}
- (id) copyWithZone: (NSZone *)zone
{
NSBitmapImageRep *copy;
copy = (NSBitmapImageRep*)[super copyWithZone: zone];
copy->_imagePlanes = 0;
copy->_imageData = [_imageData copyWithZone: zone];
return copy;
}
+ (BOOL) canInitWithData: (NSData *)data
{
TIFF *image = NULL;
@ -296,38 +284,37 @@
return (image) ? YES : NO;
}
+ (BOOL) canInitWithPasteboard: (NSPasteboard *)pasteboard
{
return [[pasteboard types] containsObject: NSTIFFPboardType];
}
+ (NSArray *) imageFileTypes
{
NSArray *wtypes = [self _wrasterFileTypes];
if (wtypes)
{
wtypes = AUTORELEASE([wtypes mutableCopy]);
[(NSMutableArray *)wtypes addObjectsFromArray:
[self imageUnfilteredFileTypes]];
}
else
wtypes = [self imageUnfilteredFileTypes];
return wtypes;
}
+ (NSArray *) imagePasteboardTypes
{
return [self imageUnfilteredPasteboardTypes];
}
+ (NSArray *) imageUnfilteredFileTypes
{
return [NSArray arrayWithObjects: @"tiff", @"tif", nil];
static NSArray *types = nil;
if (types == nil)
{
NSArray *wtypes = [self _wrasterFileTypes];
if (wtypes != nil)
{
types = [wtypes mutableCopy];
[(NSMutableArray *)types addObjectsFromArray:
[NSArray arrayWithObjects: @"tiff", @"tif", nil]];
}
else
types = [[NSArray alloc] initWithObjects: @"tiff", @"tif", nil];
}
return types;
}
+ (NSArray *) imageUnfilteredPasteboardTypes
{
return [NSArray arrayWithObjects: NSTIFFPboardType, nil];
static NSArray *types = nil;
if (types == nil)
{
types = [[NSArray alloc] initWithObjects: NSTIFFPboardType, nil];
}
return types;
}
//
@ -597,6 +584,19 @@
return nil;
}
// NSCopying protocol
- (id) copyWithZone: (NSZone *)zone
{
NSBitmapImageRep *copy;
copy = (NSBitmapImageRep*)[super copyWithZone: zone];
copy->_imagePlanes = 0;
copy->_imageData = [_imageData copyWithZone: zone];
return copy;
}
//
// NSCoding protocol
//