• 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
Cascading windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cascading windows


  • Subject: Cascading windows
  • From: Peter Teeson <email@hidden>
  • Date: Wed, 05 Dec 2012 15:55:43 -0500

Xcode 4.5.2, Lion 10.7.5

My app is a Document app and I implemented -(void)makeWindowControllers.
It could have several documents open at the same time.
In particular I want to cascade the window when a New document is opened.

I've read up on this and am aware of the NSWindow method
 - (NSPoint)cascadeTopLeftFromPoint:(NSPoint)topLeft];  // in screen coordinates!!

So do I implement the cascading algorithm my WindowController? If so in which method?
(a) initWithWindowNibName after the nib is instantiated?
(b) windowDidLoad?
(c) or somewhere else entirely?

Finally I am considering an NSPoint  (static?) in my appDelegate to store the last used NSPoint.
Does this approach seem correct? If not what would you suggest?

I did Google for algorithm and code but nothing helpful popped up.

TIA for your comments.

Peter



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cascading windows
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Object not being drawn in Cmd + N. Why? SOLVED
  • Next by Date: Re: NSOperation Efficiency
  • Previous by thread: Re: Object not being drawn in Cmd + N. Why? SOLVED
  • Next by thread: Re: Cascading windows
  • Index(es):
    • Date
    • Thread