Thank you for the answer.

Il giorno 28/feb/2012, alle ore 06:36, Seth Willits ha scritto:

> On Feb 27, 2012, at 5:45 AM, Andrea3000 wrote:
> 
>> Then, if I set my NSWindow non-opaque I correctly get rounded corners but 
>> the window becomes very slow expecially during resize. 
> 
> Mmm…. that doesn't sound right. You shouldn't notice anything being slow.

When the window is small it's as fast as if it were opaque but when it occupies 
quite all the screen (1920x1080) it becomes noticeably slow during resize.


>> Therefore I'm looking for a way to mimic QuickTime X window which is (or 
>> seems at least) a borderless window and still has rounded corners.
> 
> QuickTime Player uses a custom NSFrameView. It's not a typical borderless 
> window, it does private internal stuff to draw the titlebar as it pleases.
> 
> 
> 
>> I've found some tutorials online that subclass NSThemeFrame in order to draw 
>> the content view with rounded corners and then use the method of NSWindow: 
>> -setBottomCornerRounded:YES.
>> Unfortunately this solution works only on a regular NSWindow.
> 
> And uses private APIs so it wouldn't work for MAS and is generally a no no.

I'm not intersted in MAS because the application will be "private" and used 
only by myself so I can still be intersted in using private API.
This because I haven't told you the all story. The app is a movie player 
(precisely a bluray player) and when I was saying that I intend to mimic 
QuickTime X window
I meant that I would like to have a borderless window with rounded corner that 
can host a view (a NSOpenGLView in my case) which extends for all the window 
frame,
even below the title bar. 

Acually I'm not even interested in mimic quicktime x title bar, I already have 
my own which is made with an auxiliary NSView.

Just for completeness, the app has a borderless NSWindow with a transparent 
NSOpenGLView which has a transparent NSOpenGLContext.

Is there a way to obtain what I need?


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to