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

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

  • Follow-Ups:
    • Re: Window cascading
      • From: Peter Ammon <email@hidden>
    • Re: Window cascading
      • From: Richard Somers <email@hidden>
  • Prev by Date: [moderator] Reminder - Mac OS X 10.8 beta is under non-disclosure. Do not discuss here.
  • Next by Date: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
  • Previous by thread: [moderator] Reminder - Mac OS X 10.8 beta is under non-disclosure. Do not discuss here.
  • Next by thread: Re: Window cascading
  • Index(es):
    • Date
    • Thread