Update GSScene to use NSMutableArray

This commit is contained in:
Gregory John Casamento 2024-05-13 13:25:07 -04:00
parent 12590eaab1
commit e8d438e6f9
3 changed files with 8 additions and 7 deletions

View file

@ -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;

View file

@ -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

View file

@ -70,6 +70,7 @@
#import "AppKit/NSView.h"
#import "GSCodingFlags.h"
#import "GSScene.h"
#define DEBUG_XIB5 0