• 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
Re: Resizing a view to match the main NSWindow size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing a view to match the main NSWindow size?


  • Subject: Re: Resizing a view to match the main NSWindow size?
  • From: Nathan Kinsinger <email@hidden>
  • Date: Sun, 25 May 2008 20:07:50 -0600


On May 25, 2008, at 7:51 PM, Graham Reitz wrote:

I think I am close but don't understand how the coordinate system of an NSView relates to the NSWindow it resides in.

It looks like the NSView setFrame method will help but I am getting weird results. Am I on the right track?

thanks,
graham

Without knowing what exactly you mean by weird results, it's possible you don't have the bounds set right in relation to the frame in which case the view will be stretched, you should check out:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/Coordinates/chapter_3_section_3.html


--Nathan
_______________________________________________

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


References: 
 >Resizing a view to match the main NSWindow size? (From: Graham Reitz <email@hidden>)

  • Prev by Date: Re: Resizing a view to match the main NSWindow size?
  • Next by Date: Re: No-frills print to label printer help please
  • Previous by thread: Resizing a view to match the main NSWindow size?
  • Next by thread: Re: Resizing a view to match the main NSWindow size?
  • Index(es):
    • Date
    • Thread