Re: Runtime message on Yosemite seems spurious?

2015-03-19 Thread John Brownie
On 20/03/2015 8:29, Graham Cox wrote: Several of my apps are writing this to the console on Yosemite: "Layout still needs update after calling -[NSScrollView layout]. NSScrollView or one of its superclasses may have overridden -layout without calling super. Or, something may have dirtied layo

Re: windowDidLoad not getting called

2015-03-19 Thread dangerwillrobinsondanger
> On 2015/03/20, at 6:59, Sean McBride wrote: > > On Thu, 19 Mar 2015 21:21:30 +, Quincey Morris said: > >> ― Never, ever use “visible at launch” on any window that has a window >> controller. > > That'd be a nice thing to assert() in my window controllers... but I just > don't see any g

Runtime message on Yosemite seems spurious?

2015-03-19 Thread Graham Cox
Several of my apps are writing this to the console on Yosemite: "Layout still needs update after calling -[NSScrollView layout]. NSScrollView or one of its superclasses may have overridden -layout without calling super. Or, something may have dirtied layout in the middle of updating it. Both a

Re: windowDidLoad not getting called

2015-03-19 Thread Sean McBride
On Thu, 19 Mar 2015 21:21:30 +, Quincey Morris said: >— Never, ever use “visible at launch” on any window that has a window >controller. That'd be a nice thing to assert() in my window controllers... but I just don't see any getter for it... :( Cheers, -- _

Re: windowDidLoad not getting called

2015-03-19 Thread Ken Thomases
On Mar 19, 2015, at 3:39 PM, Bill Cheeseman wrote: > I believe you're mistaken when you say that the "Visible at Launch" setting > doesn't result in a call to -windowDidLoad. I'm using it now in a rewrite of > my UI Browser product, and it triggers -windowDidLoad exactly as I expected. A windo

Re: windowDidLoad not getting called

2015-03-19 Thread Quincey Morris
On Mar 19, 2015, at 13:39 , Bill Cheeseman wrote: > >> On Mar 19, 2015, at 3:54 PM, Ken Thomases > > wrote: >> >> That doesn't help with getting the window controller's -windowDidLoad method >> called. In fact, that setting almost never helps with anything and, in

Re: windowDidLoad not getting called

2015-03-19 Thread Bill Cheeseman
> On Mar 19, 2015, at 3:54 PM, Ken Thomases wrote: > > That doesn't help with getting the window controller's -windowDidLoad method > called. In fact, that setting almost never helps with anything and, in my > opinion, should generally be off. Turning it on just takes control away from > th

Re: windowDidLoad not getting called

2015-03-19 Thread Dave
I fixed it, it was calling loadWindow directly, I won’t let that one bite me again! > On 19 Mar 2015, at 19:49, Bill Cheeseman wrote: > > >> On Mar 19, 2015, at 2:34 PM, Ken Thomases wrote: >> >> To force the window controller to load the window, request its "window" >> property value or

Re: windowDidLoad not getting called

2015-03-19 Thread Ken Thomases
On Mar 19, 2015, at 2:49 PM, Bill Cheeseman wrote: > On Mar 19, 2015, at 2:34 PM, Ken Thomases wrote: >> >> To force the window controller to load the window, request its "window" >> property value or call -showWindow: on it (if you want to show the window). > > Or set "Visible at Launch" in

Re: windowDidLoad not getting called

2015-03-19 Thread Bill Cheeseman
> On Mar 19, 2015, at 2:34 PM, Ken Thomases wrote: > > To force the window controller to load the window, request its "window" > property value or call -showWindow: on it (if you want to show the window). Or set "Visible at Launch" in the window controller's nib file, at least if you don't ha

Re: windowDidLoad not getting called

2015-03-19 Thread Ken Thomases
On Mar 19, 2015, at 1:24 PM, Dave wrote: > The Window Controller is instantiated with this code: > > myWindowController = [[LTWWindowControllerX alloc] initWithWindowKind:@""]; > [myWindowController loadWindow]; You shouldn't call -loadWindow. -loadWindow is an override point. See the docs f

Re: windowDidLoad not getting called

2015-03-19 Thread Michael Babin
> On Mar 19, 2015, at 1:24 PM, Dave wrote: > > The Window Controller is instantiated with this code: > > myWindowController = [[LTWWindowControllerX alloc] initWithWindowKind:@""]; > [myWindowController loadWindow]; > > > windowDidLoad doesn’t get called and the “window” property of > LTWWin

windowDidLoad not getting called

2015-03-19 Thread Dave
Hi, I have a Window Controller (LTWWindowControllerX) that loads a window from a NIB file. I have a class called “LTWWindowX” (it inherits from NSWindow) which is a non-standard window in that it has the appearance of a “Stickies” or “Tool Palette”. The File’s Owner in the NIB is set to LTWWi