Re: Round corners of borderless NSWindow without set it transparent

2012-03-02 Thread Andrea3000
As written in the last mail, I'm no longer using the example with rounded corner. I'm using an unmodified "Cocoa Application" template project with just the transparent/opacity toggle. Therefore I haven't any auxiliary view and therefore no rounded corners, just the default window. Il giorno 02

Re: Round corners of borderless NSWindow without set it transparent

2012-03-02 Thread Andrea3000
Il giorno 29/feb/2012, alle ore 22:43, Andrea3000 ha scritto: > I'm sorry if you think I'm too lazy to debug it myself. I never intended to > implicitly ask you to download and debug the app for me, believe me. > > I posted a demo project simply because I think that the issue isn't related >

Re: Round corners of borderless NSWindow without set it transparent

2012-02-29 Thread Andrea3000
Il giorno 29/feb/2012, alle ore 21:26, Fritz Anderson ha scritto: > On 29 Feb 2012, at 11:14 AM, Andrea3000 wrote: > >> I've used Instruments and the only relevant thing that I've noticed is that >> when the window is opaque and I resize it like a mad, WindowServer process >> jumps to 30% of

Re: Round corners of borderless NSWindow without set it transparent

2012-02-29 Thread Fritz Anderson
On 29 Feb 2012, at 11:14 AM, Andrea3000 wrote: > I've used Instruments and the only relevant thing that I've noticed is that > when the window is opaque and I resize it like a mad, WindowServer process > jumps to 30% of CPU usage at its max but when the window is transparent and I > resize it

Re: Round corners of borderless NSWindow without set it transparent

2012-02-29 Thread Andrea3000
Il giorno 29/feb/2012, alle ore 17:56, Corbin Dunn ha scritto: > > On Feb 28, 2012, at 12:54 PM, Andrea3000 wrote: > >> Il giorno 28/feb/2012, alle ore 20:20, Corbin Dunn ha scritto: >> >>> >>> On Feb 27, 2012, at 11:51 PM, Andrea3000 wrote: When the window is small it's as fast

Re: Round corners of borderless NSWindow without set it transparent

2012-02-29 Thread Andrea3000
Il giorno 28/feb/2012, alle ore 21:54, Andrea3000 ha scritto: > Il giorno 28/feb/2012, alle ore 20:20, Corbin Dunn ha scritto: >> >> Did you sample it or use Instruments? What is slow? > > The resize is slow. > When the window is small I can resize it as fast as I want and the resize > animat

Re: Round corners of borderless NSWindow without set it transparent

2012-02-29 Thread Corbin Dunn
On Feb 28, 2012, at 12:54 PM, Andrea3000 wrote: > Il giorno 28/feb/2012, alle ore 20:20, Corbin Dunn ha scritto: > >> >> On Feb 27, 2012, at 11:51 PM, Andrea3000 wrote: >>> >>> When the window is small it's as fast as if it were opaque but when it >>> occupies quite all the screen (1920x108

Re: Round corners of borderless NSWindow without set it transparent

2012-02-28 Thread Andrea3000
Il giorno 28/feb/2012, alle ore 20:20, Corbin Dunn ha scritto: > > On Feb 27, 2012, at 11:51 PM, Andrea3000 wrote: >> >> 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. > > Did yo

Re: Round corners of borderless NSWindow without set it transparent

2012-02-28 Thread Corbin Dunn
On Feb 27, 2012, at 11:51 PM, Andrea3000 wrote: > 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

Re: Round corners of borderless NSWindow without set it transparent

2012-02-28 Thread Andrea3000
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 do

Re: Round corners of borderless NSWindow without set it transparent

2012-02-27 Thread Seth Willits
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. > Therefore I'm looking for a way to m

Round corners of borderless NSWindow without set it transparent

2012-02-27 Thread Andrea3000
I'm trying to round edges of a borderless NSWindow without having to mark it as transparent with setOpaque:NO. My testbed is made only of a borderless NSWindow, its Content View and a regular NSView. The NSView is subclassed to override drawRect method in order to round corners of the view. Th