Skip to content

Instantly share code, notes, and snippets.

@Kureev
Created October 20, 2016 08:34
Show Gist options
  • Save Kureev/bf0012d9f141cde486eaab2b33e40cc5 to your computer and use it in GitHub Desktop.
Save Kureev/bf0012d9f141cde486eaab2b33e40cc5 to your computer and use it in GitHub Desktop.
- (void)renderElementOfType:(NSString *)name size:(NSSize)size {
EBWindow *window = [[EBWindow alloc] init];
EBUIManager *manager = [EBUIManager sharedInstance];
[window openWithSize:NSMakeSize((CGFloat)size.width, (CGFloat)size.height)];
NSString *uuid = [[NSUUID UUID] UUIDString];
[manager addValue:window forKey:uuid];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment