Re: Windows and views and controls, oh my!

2011-09-07 Thread N!K
Thank you. This helps me with higher level issues On Sep 5, 2011, at 9:42 PM, Quincey Morris wrote: On Sep 5, 2011, at 20:43 , N!K wrote: The examples I've seen all show a window with a view in it and how to draw in that view. But I want to put up a window with a couple of views in it

Re: Windows and views and controls, oh my!

2011-09-07 Thread Ron Hunsinger
On Sep 7, 2011, at 11:19 AM, N!K wrote: What I'm trying to do is really very simple. I want a pushbutton to seek data input for the model (easily done). Then I want a pushbutton to display two different views of the data. The pushbutton sets a flag indicating which view of the data should

Re: Windows and views and controls, oh my!

2011-09-07 Thread Quincey Morris
On Sep 7, 2011, at 11:19 , N!K wrote: The reason I ask if a window controller is necessary is that I do not plan to manipulate the window at all. Once it's open, I will leave it alone while drawing within the views until quitting. Also, I will not be manipulating the views as a whole. Many

Windows and views and controls, oh my!

2011-09-05 Thread William Squires
Okay, I'm having a tizzy here. Most of the '...learn MacOS X...' programming books gloss over the nitty-gritty of actually creating and displaying various windows, either assuming they're going to be document windows (as part of a document-based app), or they're just there as part of an example

Re: Windows and views and controls, oh my!

2011-09-05 Thread Keary Suska
On Sep 5, 2011, at 9:32 AM, William Squires wrote: Okay, I'm having a tizzy here. Most of the '...learn MacOS X...' programming books gloss over the nitty-gritty of actually creating and displaying various windows, either assuming they're going to be document windows (as part of a

Re: Windows and views and controls, oh my!

2011-09-05 Thread Ken Thomases
On Sep 5, 2011, at 10:32 AM, William Squires wrote: While I can create the UI easily enough in IB, what I don't understand is how to actually load, instantiate, and display the window from my view controller object. A common approach is to: * Create a custom subclass of NSWindowController.

Re: Windows and views and controls, oh my!

2011-09-05 Thread William Squires
Thanks! On Sep 5, 2011, at 11:07 AM, Ken Thomases wrote: On Sep 5, 2011, at 10:32 AM, William Squires wrote: While I can create the UI easily enough in IB, what I don't understand is how to actually load, instantiate, and display the window from my view controller object. A common

Re: Windows and views and controls, oh my!

2011-09-05 Thread N!K
Thanks for the description below. It's good. I, too, am floundering when it comes to specifics that are not shown in examples from Apple or BNR books or websites. I understand the examples, but I don't see how to extend them. So, understanding how the windows and views should be structured

Re: Windows and views and controls, oh my!

2011-09-05 Thread Quincey Morris
On Sep 5, 2011, at 20:43 , N!K wrote: The examples I've seen all show a window with a view in it and how to draw in that view. But I want to put up a window with a couple of views in it and draw in them individually, sometimes clearing and redrawing, sometimes adding more drawing. You're