1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-30 17:23:54 +03:00
vimr/NvimView/NvimServer/CocoaCategories.m

27 lines
427 B
Mathematica
Raw Normal View History

/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
#import "CocoaCategories.h"
@implementation NSObject (NeoVimServer)
- (const char *)cdesc {
return self.description.cstr;
}
@end
@implementation NSString (NeoVimServer)
- (const char *)cstr {
return [self cStringUsingEncoding:NSUTF8StringEncoding];
}
2016-11-10 19:33:14 +03:00
- (NSUInteger)clength {
return [self lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
}
@end