Re: Programatically resizing a window
Re: Programatically resizing a window
- Subject: Re: Programatically resizing a window
- From: Tim Lucas <email@hidden>
- Date: Thu, 16 Dec 2004 14:50:02 +1100
On 16/12/2004, at 2:24 PM, Henry McGilton wrote:
I have had the same conceptual trouble with this last point:
how to get from a document to its associated window. The
problem with this statement of requirements is that a given
document may have multiple associated windows, in which case
you are back where you started. That is to say, in the multiple
windows per document case, you can not talk about 'the' window
associated with the document, but you must decide on 'a' window
associated with the document.
A document can have multiple window controllers.
A window controller has one window.
If your document only has a single window controller then you're
laughing:
[(NSWindowController*)[[aDocument windowControllers] objectAtIndex:0]
window]
If it has more than 1 you'll have to be a bit trickier (trying checking
the window controller's windowNibName)
-- tim
http://www.toolmantim.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden