carlogulliani (carlogulliani) wrote in macosxdev,
carlogulliani
carlogulliani
macosxdev

is it bug or not?

 So, i made class which replaced my Window.

I used initWithContentRect for re-drawing my Window interface (i just removed close, minimize, maximize buttons and removed titlebar)

so, in my app i using webView which load html page with flash, and after using initWithContentRect method my flash cannot get mouse events, for example - my flash has button and in normal mode button is pressing, but after using this method button doesn't pressing

i used the next:

- (id)initWithContentRect:(NSRect)contentRect 

styleMask:(unsigned int)aStyle 

  backing:(NSBackingStoreType)bufferingType 

defer:(BOOL)flag {


NSSize size = [[NSScreen mainScreen] frame].size;

    self = [super initWithContentRect:NSMakeRect(0, 0, size.width, size.height)

styleMask:NSBorderlessWindowMask 

  backing:NSBackingStoreBuffered 

defer:NO];

if(self) {

[self setLevel: NSStatusWindowLevel];

[self setHasShadow: NO];

[self setMovableByWindowBackground:YES];

}

    return self;

}

 

- (BOOL) canBecomeKeyWindow

{

    return YES;

}

Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments