• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programatically resizing a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Programatically resizing a window (From: Michael Heinz <email@hidden>)
 >Re: Programatically resizing a window (From: j o a r <email@hidden>)
 >Re: Programatically resizing a window (From: Michael Heinz <email@hidden>)
 >Re: Programatically resizing a window (From: Henry McGilton <email@hidden>)

  • Prev by Date: Re: cross development on Jaguar
  • Next by Date: Re: Controlling control sizes when programatically resizing a window
  • Previous by thread: Re: Programatically resizing a window
  • Next by thread: Re: Programatically resizing a window
  • Index(es):
    • Date
    • Thread