Setting NSWindow to be transparent

2013-06-16 Thread Pax
I am trying to set NSWindow (borderless, with no controls) to be transparent before I display it (so that I can fade it onto the screen). Unfortunately, I don't seem to be able to - it loads, visibly, then sets the opacity to 0 (resulting in the window flickering at full opacity, before

Re: Setting NSWindow to be transparent

2013-06-16 Thread Michael Starke
I'm using the same effect in my application. The problem is, if you use this method, the window might not be there yet. Did you inspect if the window iVar is actually not nil? The way I did it is using the windowDidLoad method and call -(void)windowDidLoad { [super windowDidLoad]

Re: Setting NSWindow to be transparent

2013-06-16 Thread Michael Starke
Forget what I said. If the value takes effect, window isn't nil. The trick is to uncheck show window on launch. If I chekc that box, my window is visible at first too. - Michael On 16.06.2013, at 10:33, Michael Starke michael.sta...@hicknhack-software.com wrote: I'm using the same effect in

Re: Setting NSWindow to be transparent

2013-06-16 Thread Pax
I've done those things already in my experimentation. Trouble is, my window is for a different window controller - not Application Delegate - and the window loads when the class does. Show Window On Launch doesn't seem to make any difference. On 16 Jun 2013, at 09:33, Michael Starke