mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Update GSScene to use NSMutableArray
This commit is contained in:
parent
12590eaab1
commit
e8d438e6f9
3 changed files with 8 additions and 7 deletions
|
@ -32,21 +32,21 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
@class NSArray;
|
||||
@class NSMutableArray;
|
||||
@class NSString;
|
||||
|
||||
@interface GSScene : NSObject <NSCoding, NSCopying>
|
||||
{
|
||||
NSString *_sceneID;
|
||||
NSArray *_objects;
|
||||
NSMutableArray *_objects;
|
||||
NSPoint _canvasLocation;
|
||||
}
|
||||
|
||||
- (NSString *) sceneID;
|
||||
- (void) setSceneID: (NSString *)sceneID;
|
||||
|
||||
- (NSArray *) objects;
|
||||
- (void) setObjects: (NSArray *)objects;
|
||||
- (NSMutableArray *) objects;
|
||||
- (void) setObjects: (NSMutableArray *)objects;
|
||||
|
||||
- (NSPoint) canvasLocation;
|
||||
- (void) setCanvasLocation: (NSPoint)point;
|
||||
|
|
|
@ -57,14 +57,14 @@
|
|||
ASSIGN(_sceneID, sceneID);
|
||||
}
|
||||
|
||||
- (NSArray *) objects
|
||||
- (NSMutableArray *) objects
|
||||
{
|
||||
return _objects;
|
||||
}
|
||||
|
||||
- (void) setObjects: (NSArray *)objects
|
||||
- (void) setObjects: (NSMutableArray *)objects
|
||||
{
|
||||
ASSIGNCOPY(_objects, objects);
|
||||
ASSIGN(_objects, objects);
|
||||
}
|
||||
|
||||
- (NSPoint) canvasLocation
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
#import "AppKit/NSView.h"
|
||||
|
||||
#import "GSCodingFlags.h"
|
||||
#import "GSScene.h"
|
||||
|
||||
#define DEBUG_XIB5 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue