Sorry, then you must cancel it :)
- (IBAction)resizeToView:(id)sender
{
NSView *docView =[[[webView mainFrame] frameView] documentView];
NSRect docRect = [docView frame];
int height = docRect.size.height;
int width = docRect.size.width;
NSRect frame = [window frame];
int delta = height - frame.size.height;
frame.origin.y -= delta;
frame.size.height += delta;
frame.size.width = width;
[window setFrame:frame display:YES];
}
source
share