Re: layout method not getting called on Content View

2015-04-17 Thread Dave
On 16 Apr 2015, at 22:37, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 16, 2015, at 13:54 , Dave d...@looktowindward.com mailto:d...@looktowindward.com wrote: I’m wondering if the call to super should happen before I mess with the Content View? From the

Re: layout method not getting called on Content View

2015-04-16 Thread dangerwillrobinsondanger
Sent from my iPhone On 2015/04/16, at 19:47, Dave d...@looktowindward.com wrote: On 15 Apr 2015, at 22:17, David Duncan david.dun...@apple.com wrote: On Apr 15, 2015, at 2:06 PM, Dave d...@looktowindward.com wrote: I recommend you switch to Auto Layout. AFAICT, Auto-Layout

Re: layout method not getting called on Content View

2015-04-16 Thread Dave
On 15 Apr 2015, at 22:17, David Duncan david.dun...@apple.com wrote: On Apr 15, 2015, at 2:06 PM, Dave d...@looktowindward.com wrote: I recommend you switch to Auto Layout. AFAICT, Auto-Layout won’t let me do what I want to do. This is so simple. The NIB file is owned by the

Re: layout method not getting called on Content View

2015-04-16 Thread Dave
__ The right thing to do is to sit down and learn auto layout. You'll be glad you did. It's not going away and it's not that hard once you get over the hump. The best coverage are the short books by Erica Sadun. 1st edition is really Mac OS despite the title. 2nd

Re: layout method not getting called on Content View

2015-04-16 Thread Quincey Morris
On Apr 16, 2015, at 08:41 , Dave d...@looktowindward.com wrote: Any advice on how to quickly achieve this would greatly appreciated, but it if means spending days reading documentation and experimenting just to set the frame of a view, then I may as well forget including this part in the

Re: layout method not getting called on Content View

2015-04-16 Thread Dave
On 16 Apr 2015, at 17:49, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 16, 2015, at 08:41 , Dave d...@looktowindward.com mailto:d...@looktowindward.com wrote: Any advice on how to quickly achieve this would greatly appreciated, but it if means spending days

Re: layout method not getting called on Content View

2015-04-16 Thread Dave
Hi Quincey, On 16 Apr 2015, at 20:42, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 16, 2015, at 12:21 , Dave d...@looktowindward.com wrote: On iOS, there is a method called “layoutSubviews” that I’ve used to do this sort of thing in the past, so it was deemed the

Re: layout method not getting called on Content View

2015-04-16 Thread Quincey Morris
On Apr 16, 2015, at 12:21 , Dave d...@looktowindward.com wrote: On iOS, there is a method called “layoutSubviews” that I’ve used to do this sort of thing in the past, so it was deemed the correct place to do this in iOS, I assumed it would be the same or similar for Mac. No, it’s “old

Re: layout method not getting called on Content View

2015-04-16 Thread Quincey Morris
On Apr 16, 2015, at 13:54 , Dave d...@looktowindward.com wrote: I’m wondering if the call to super should happen before I mess with the Content View? From the NSWindowController documentation: The default implementation does nothing.” However, it’s probably better practice to put it at

layout method not getting called on Content View

2015-04-15 Thread Dave
Hi, I have a WindowController/Window Combo contained in a NIB. Auto Layout is turned off and I want to alter to positions and/or sizes of views inside the ContentView. I thought the obvious place to do this was layout, but it never seems to get called? How can I manually lay out the Content

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 01:47 PM, Dave wrote: Hi, I have a WindowController/Window Combo contained in a NIB. Window controllers usually don't live in nibs. Instead, they act as the nib's File's Owner. Auto Layout is turned off and I want to alter to positions and/or sizes of views inside

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 02:41 PM, Dave wrote: A bit more, I turned Auto Layout on and now the layout method gets called, but it doesn’t set the Frame Rect correctly. I’m looping through the subviews and setting the frames of a couple of NSViews, but the Frame doesn’t change? As documented,

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 03:02 PM, Kyle Sluder wrote: You might want to watch the introductory videos available at apple.com/wwdc. Whoops, the video archive is actually located at https://developer.apple.com/videos/wwdc. You might start with the Cocoa Autolayout video from WWDC 2011:

Re: layout method not getting called on Content View

2015-04-15 Thread Dave
On 15 Apr 2015, at 21:02, Kyle Sluder k...@ksluder.com wrote: On Wed, Apr 15, 2015, at 02:41 PM, Dave wrote: A bit more, I turned Auto Layout on and now the layout method gets called, but it doesn’t set the Frame Rect correctly. I’m looping through the subviews and setting the frames of

layout method not getting called on Content View

2015-04-15 Thread Dave
A bit more, I turned Auto Layout on and now the layout method gets called, but it doesn’t set the Frame Rect correctly. I’m looping through the subviews and setting the frames of a couple of NSViews, but the Frame doesn’t change? The views are initially loaded from a NIB, but later I want to

Re: layout method not getting called on Content View

2015-04-15 Thread Dave
I recommend you switch to Auto Layout. AFAICT, Auto-Layout won’t let me do what I want to do. This is so simple. The NIB file is owned by the window controller. The window is a large window and initially has two frames in it. Later on, I get Notifications telling me a new position and size

Re: layout method not getting called on Content View

2015-04-15 Thread David Duncan
On Apr 15, 2015, at 2:06 PM, Dave d...@looktowindward.com wrote: I recommend you switch to Auto Layout. AFAICT, Auto-Layout won’t let me do what I want to do. This is so simple. The NIB file is owned by the window controller. The window is a large window and initially has two frames