Gray border when using NSBorderlessWindowMask

Posted by bare_nature on Stack Overflow See other posts from Stack Overflow or by bare_nature
Published on 2010-12-26T15:43:48Z Indexed on 2010/12/26 15:54 UTC
Read the original article Hit count: 382

Filed under:
|

Hello,

Whenever I try to create a custom window using NSBorderlessWindowMask and set an NSView (for example an NSImageView) as its contentView, I get a 1px gray border around the NSView and I don't seem to be able to get rid of it.

I have followed several approaches including Apple's RoundTransparentWindow sample code as well as several suggestions on StackOverflow.

I suspect the gray border is either coming from the window itself or the NSView.

Have any of you experienced this problem or do you have a possible solution?

Thanks

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about mac