Window cascading
Window cascading
- Subject: Window cascading
- From: ecir hana <email@hidden>
- Date: Tue, 08 May 2012 11:01:25 +0200
Hello,
I create a window like this:
id window = [[[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 200,
200) styleMask:NSTitledWindowMask backing:NSBackingStoreBuffered
defer:NO] autorelease];
[window cascadeTopLeftFromPoint:NSMakePoint(20,20)];
but it cascades just vertically - the next window is positioned to the very
top left of my screen, the next one is just 20px lower (and 0px right), the
next one is again 20px lower than the previous one but it wont move
horizontally.
Why's that? Do I have to remember the returned NSPoint and pass it to
next cascadeTopLeftFromPoint:?
Kind regards,
Ecir Hana
_______________________________________________
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