Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize window #4

Open
kgn opened this issue Jan 24, 2012 · 1 comment
Open

Resize window #4

kgn opened this issue Jan 24, 2012 · 1 comment

Comments

@kgn
Copy link

kgn commented Jan 24, 2012

It would be great if the window could be resized

@nicu
Copy link

nicu commented Jan 24, 2014

You could make it resizable by changing the style mask from NSBorderlessWindowMask to NSResizableWindowMask in the file SNRHUDWindow.m.

Example:

- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
{
    if ((self = [super initWithContentRect:contentRect styleMask:NSResizableWindowMask backing:bufferingType defer:deferCreation])) {
        [self setOpaque:NO];
        [self setBackgroundColor:[NSColor clearColor]];
        [self setMovableByWindowBackground:YES];
        [self setLevel:NSFloatingWindowLevel];
    }
    return self;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants