Re: Detecting when document window is actually displayed

2012-06-09 Thread Martin Hewitson
I've been doing this in -awakeFromNib with a -performSelector:withObject:afterDelay: call. I suspect this is not the 'correct' way to do it, but it does seem to always work. Martin On 9, Jun, 2012, at 02:33 PM, Luc Van Bogaert wrote: > Hi, > > I'm trying to display a custom modal sheet on my

Detecting when document window is actually displayed

2012-06-09 Thread Luc Van Bogaert
Hi, I'm trying to display a custom modal sheet on my document windows (only if some condition applies of course), as soon as the document window is displayed. I tried calling beginSheet:modalForWindow: in my window controller's windowDidLoad: method, but that seems to be too early and results i