Re: Drawing customized window

2012-11-01 Thread Nick
Corbin, is it possible to make the background color pattern image stretch the picture across the window, instead of repeating it?. If not, is dealing with borderless window the only way to get this functionality (like, having a custom colored title bar, and white title bar text)? Thank you

Re: Drawing customized window

2012-11-01 Thread Corbin Dunn
On Oct 31, 2012, at 7:25 PM, Nick eveningn...@gmail.com wrote: Thanks Corbin, it works great (unfortunately I can't draw the gradient depending on the window size (so it's always white on top and black on bottom, no matter how high the window is, for example), but I guess that still gives

Re: Drawing customized window

2012-11-01 Thread Corbin Dunn
hi nick, No; you can't stretch it, but you can create a pattern image that is tall, and appears to repeat or stretch. Other than that, the only official way to customize a window is via a borderless custom window. However, please do log bugs requesting that AppKit provide an easy way to

Re: Drawing customized window

2012-11-01 Thread Lee Ann Rucker
Done; rdar://12617674 I also included a suggestion for a hasDarkBackground flag that'll switch to buttons like QuickTime Player uses because the shadow on the default ones looks weird on dark backgrounds. On Nov 1, 2012, at 11:12 AM, Corbin Dunn wrote: hi nick, No; you can't stretch it,

Re: Drawing customized window

2012-10-31 Thread Nick
Forgot to add, the slowness on 10.7/10.8 can be seen in Activity monitor during video playback (I am playing a QTMovie onto QTMovieLayer). While QuickTime player takes 30%, my app takes up to 100% of the CPU power to play the same video.. That's where I checked the app using Instruments - I am

Re: Drawing customized window

2012-10-31 Thread Jens Alfke
On Oct 31, 2012, at 8:50 AM, Nick eveningn...@gmail.com wrote: I am wondering if anyone created customized windows like this or reverse engineered this NSThemeFrame? Chrome does tricks like this; there’s some really ugly code to hack the window frame drawing to support its custom tabs. It’s

Re: Drawing customized window

2012-10-31 Thread Corbin Dunn
On Oct 31, 2012, at 8:50 AM, Nick eveningn...@gmail.com wrote: Hello I am attempting to create an application with custom looking windows (similar to new iCalendar on mountain lion, or QuickTime player). I am targeting systems from Snow Leopard to Mountain Lion. So far I've been

Re: Drawing customized window

2012-10-31 Thread Nick
Thanks Corbin, it works great (unfortunately I can't draw the gradient depending on the window size (so it's always white on top and black on bottom, no matter how high the window is, for example), but I guess that still gives possibilities for skinning).. I will join the Iain's question.. Is it

Re: Drawing customized window

2012-10-31 Thread iain
Hi Corbin, sorry for semi-hijacking the thread On Wed, Oct 31, 2012 at 8:17 PM, Corbin Dunn corb...@apple.com wrote: I am wondering if anyone created customized windows like this or reverse engineered this NSThemeFrame? Maybe there are any articles on the internet that I have missed