Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
My windows don't cascade
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My windows don't cascade



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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.