1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/legacy/TL/TLObject.mm

21 lines
493 B
Plaintext
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TLObject.h"
#import <objc/runtime.h>
//static const char *constructorNameKey = "TL.constructorName";
@implementation NSArray (TL)
- (void)TLtagConstructorName:(int32_t)__unused constructorName
{
//objc_setAssociatedObject(self, constructorNameKey, [[NSNumber alloc] initWithInt:constructorName], OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
- (int32_t)TLconstructorName
{
return 0;
//return [(NSNumber *)objc_getAssociatedObject(self, constructorNameKey) intValue];
}
@end