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

Window Placement


  • Subject: Window Placement
  • From: email@hidden
  • Date: Thu, 7 Nov 2002 06:56:35 EST

I'm trying to use the following code to get a perfect placement for my window:

NSRect *d;
NSScreen *screen = [NSScreen mainScreen];
d = [screen frame];
[[winControl window] setFrame:[NSRect x:[[d width]/2-500/2] y:[[d
height]/2-500/2] w:700 h:500] display:NO];

But for some reason I get 2 errors trying to run it:
following
AppController.m:121: incompatible types in assignment
AppController.m:122: parse error before "NSRect"

Any ideas?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Window Placement
      • From: Christopher Holland <email@hidden>
    • Re: Window Placement (The third)
      • From: Marco Binder <email@hidden>
    • RE: Window Placement
      • From: "Jonathan E. Jackel" <email@hidden>
    • RE: Window Placement
      • From: "Jonathan E. Jackel" <email@hidden>
    • Re: Window Placement
      • From: "Clark S. Cox III" <email@hidden>
    • Re: Window Placement
      • From: Stéphane Sudre <email@hidden>
    • Re: Window Placement
      • From: j o a r <email@hidden>
    • Re: Window Placement
      • From: Marco Binder <email@hidden>
  • Prev by Date: NSDrawer contentView update problem
  • Next by Date: Re: How to encode STL vector
  • Previous by thread: NSDrawer contentView update problem
  • Next by thread: Re: Window Placement
  • Index(es):
    • Date
    • Thread