Skip to content

Instantly share code, notes, and snippets.

@hendricius
Created February 28, 2013 18:16
Show Gist options
  • Save hendricius/5058865 to your computer and use it in GitHub Desktop.
Save hendricius/5058865 to your computer and use it in GitHub Desktop.
- (void) resize:(NSDictionary *) properties
{
NSRect frame = [self.webView window].frame;
frame.size.width = [[properties valueForKey:@"width"] doubleValue];
frame.size.height = [[properties valueForKey:@"height"] doubleValue];
[[self.webView window] setFrame:frame display:YES];
}
- (void) resize
{
//NSRect frame = [self.webView window].frame;
//l = self.webview.window.maxSize;
[self.webView.window];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment