mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 10:11:20 +00:00
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:
parent
3b035626b2
commit
9642bac4ec
1 changed files with 38 additions and 38 deletions
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue