mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 19:01:05 +00:00
Avoid compiler warnings from old compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30089 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b3bb898eba
commit
d4b51a7b63
3 changed files with 38 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSGModelLoader.m,
|
||||
* Source/GSXibLoader.m: Avoid compiler warnings from old compilers.
|
||||
|
||||
2010-04-05 Doug Simons <doug.simons@testplant.com>
|
||||
|
||||
* Source/NSView.m: Fix the worst problems with key view
|
||||
|
|
|
@ -26,8 +26,10 @@
|
|||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSBundle.h>
|
||||
#import <Foundation/NSDebug.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
#import <Foundation/NSException.h>
|
||||
#import <Foundation/NSFileManager.h>
|
||||
|
|
|
@ -195,12 +195,14 @@
|
|||
|
||||
@end
|
||||
|
||||
@interface IBConnection: NSObject
|
||||
@interface IBConnection: NSObject <NSCoding>
|
||||
{
|
||||
NSString *label;
|
||||
id source;
|
||||
id destination;
|
||||
}
|
||||
- (id) nibInstantiate;
|
||||
- (void) establishConnection;
|
||||
@end
|
||||
|
||||
@implementation IBConnection
|
||||
|
@ -231,6 +233,11 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder*)aCoder
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
DESTROY(label);
|
||||
|
@ -464,7 +471,7 @@
|
|||
|
||||
@end
|
||||
|
||||
@interface IBObjectContainer: NSObject
|
||||
@interface IBObjectContainer: NSObject <NSCoding>
|
||||
{
|
||||
NSMutableArray *connectionRecords;
|
||||
IBMutableOrderedSet *objectRecords;
|
||||
|
@ -475,6 +482,7 @@
|
|||
id sourceID;
|
||||
int maxID;
|
||||
}
|
||||
- (id) nibInstantiate;
|
||||
@end
|
||||
|
||||
@implementation IBObjectContainer
|
||||
|
@ -502,6 +510,11 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder*)aCoder
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
DESTROY(connectionRecords);
|
||||
|
@ -542,6 +555,15 @@
|
|||
NSMutableDictionary *elements;
|
||||
NSMutableArray *values;
|
||||
}
|
||||
- (NSString*) type;
|
||||
- (NSString*) value;
|
||||
- (NSDictionary*) elements;
|
||||
- (NSArray*) values;
|
||||
- (void) addElement: (GSXibElement*)element;
|
||||
- (void) setElement: (GSXibElement*)element forKey: (NSString*)key;
|
||||
- (void) setValue: (NSString*)text;
|
||||
- (NSString*) attributeForKey: (NSString*)key;
|
||||
- (GSXibElement*) elementForKey: (NSString*)key;
|
||||
@end
|
||||
|
||||
@interface GSXibKeyedUnarchiver: NSKeyedUnarchiver
|
||||
|
@ -892,7 +914,7 @@ didStartElement: (NSString *)elementName
|
|||
NSString *classname = [element attributeForKey: @"class"];
|
||||
Class c = [self classForClassName: classname];
|
||||
id o, r;
|
||||
id _delegate = [self delegate];
|
||||
id delegate = [self delegate];
|
||||
|
||||
if (c == nil)
|
||||
{
|
||||
|
@ -902,7 +924,7 @@ didStartElement: (NSString *)elementName
|
|||
c = NSClassFromString(classname);
|
||||
if (c == nil)
|
||||
{
|
||||
c = [_delegate unarchiver: self
|
||||
c = [delegate unarchiver: self
|
||||
cannotDecodeObjectOfClassName: classname
|
||||
originalClasses: nil];
|
||||
if (c == nil)
|
||||
|
@ -929,7 +951,7 @@ didStartElement: (NSString *)elementName
|
|||
r = [o initWithCoder: self];
|
||||
if (r != o)
|
||||
{
|
||||
[_delegate unarchiver: self
|
||||
[delegate unarchiver: self
|
||||
willReplaceObject: o
|
||||
withObject: r];
|
||||
o = r;
|
||||
|
@ -939,19 +961,19 @@ didStartElement: (NSString *)elementName
|
|||
r = [o awakeAfterUsingCoder: self];
|
||||
if (r != o)
|
||||
{
|
||||
[_delegate unarchiver: self
|
||||
[delegate unarchiver: self
|
||||
willReplaceObject: o
|
||||
withObject: r];
|
||||
o = r;
|
||||
if (key != nil)
|
||||
[decoded setObject: o forKey: key];
|
||||
}
|
||||
if (_delegate != nil)
|
||||
if (delegate != nil)
|
||||
{
|
||||
r = [_delegate unarchiver: self didDecodeObject: o];
|
||||
r = [delegate unarchiver: self didDecodeObject: o];
|
||||
if (r != o)
|
||||
{
|
||||
[_delegate unarchiver: self
|
||||
[delegate unarchiver: self
|
||||
willReplaceObject: o
|
||||
withObject: r];
|
||||
o = r;
|
||||
|
|
Loading…
Reference in a new issue