struct
Objective-CのCのようなものを作成することは可能ですか?私はそれをで使用できる必要があるNSArray
ので、それは伝統的なものではありえませんstruct
。今、私はこれを達成するためだけにクラス全体を宣言していますが、もっと簡単な方法があるのではないかと思っていました。
私が現在持っているもの:
@interface TextureFile : NSObject
@property NSString *name;
@property GLKTextureInfo *info;
@end
@implementation TextureFile
@synthesize name = _name;
@synthesize info = _info;
@end
NSMutableArray *textures;
私がやりたいこと:
typedef struct {
NSString *name;
GLKTextureInfo *info;
} TextureFile;
NSMutable array *textures;