• 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
My windows don't cascade
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My windows don't cascade


  • Subject: My windows don't cascade
  • From: email@hidden (Stefan Haller)
  • Date: Mon, 2 Jun 2008 22:29:00 +0200
  • Organization: Ableton

I have an NSDocument-based application that is still pretty close to the
Xcode template for "Cocoa Document-based application"; i.e. I subclass
NSDocument but not NSWindowController, and I implement -windowNibName
but not -makeWindowControllers.

When I open a new document, it doesn't cascade; it opens with the same
frame as the previous one.

Setting a breakpoint at -[NSWindow cascadeTopLeftFromPoint:] shows that
it is indeed called, from this stack:

  #0  0x94f5d6a4 in -[NSWindow cascadeTopLeftFromPoint:] ()
  #1  0x94f415e6 in -[NSWindowController _windowDidLoad] ()
  #2  0x94edf476 in -[NSWindowController window] ()
  #3  0x94edf376 in -[NSWindowController showWindow:] ()
  #4  0x94edf2b9 in -[NSDocument showWindows] ()
  #5  0x94edd580 in -[NSDocumentController openUntitledDocumentAndDisplay:error:] ()

however, the argument to cascadeTopLeftFromPoint appears to be always
(0,0).  Any idea what could cause this?

Thanks,
   Stefan


--
Stefan Haller
Ableton
http://www.ableton.com/
_______________________________________________

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: My windows don't cascade
      • From: email@hidden (Stefan Haller)
  • Prev by Date: Re: many-to-many relationships and retain cycles
  • Next by Date: NewBie: Trying to load a html file bundled with app...
  • Previous by thread: Re: Apple Remote and exclusivity
  • Next by thread: Re: My windows don't cascade
  • Index(es):
    • Date
    • Thread