-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObject.h
28 lines (23 loc) · 915 Bytes
/
Object.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// Object.h
//
// Created by Jonathan Langens on 28/03/15.
// Copyright (c) 2015 Jonathan Langens. All rights reserved.
//
// Object represents an object
// it contains instances of the object and has support for more than one language.
// TODO: I should still refactor the locale thing, for now it is only support
// through hardcoded strings (it should be done with an array) and it only supports
// dutch as a second locale, this should be more..
//
#import <UIKit/UIKit.h>
#import "ObjectInstance.h"
@interface Object : UIView
@property (strong, nonatomic) NSMutableArray* instances;
@property (strong, nonatomic) NSString* name;
@property (strong, nonatomic) NSString* nameNL;
@property (strong, nonatomic) ObjectInstance* selInstance;
-(instancetype) initWithName:(NSString*) name;
-(void)setSelectedInstance:(ObjectInstance*)instance;
-(NSString*)getNameForLocale:(NSString*)locale;
@end