• 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: NSView's origin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView's origin


  • Subject: Re: NSView's origin
  • From: Aaron Boothello <email@hidden>
  • Date: Mon, 27 Nov 2006 10:01:15 +0800

Hey guys, thanks for the reply.

I was trying to use springs and struts...but it just wasnt doing what i wanted it to do.....

here's the situation.....

one window..... 4 NSOpenGLViews positioned with a space in between them all. ideally i would like this space to remain fixed (ie: not grow/shrink when the window is resized). Spring and struts just dont seem to be able to provide that.

I have gone over the coordinate system stuff... but i can seem to find the method which return the origin of an NSView in a window. i know there is a method with lets you change the origin, but there's no where to determine where the origin actually is.

Any suggestions would be appreciated.

Cheers,
Aaron



On 27/11/2006, at 8:20 AM, Shawn Erickson wrote:


On Nov 26, 2006, at 9:25 AM, Aaron Boothello wrote:

Hey guys,
I have a view inside a window that i need to resize in real-time. i need to change the view's origin while resizing.....but first i need to figure out the origin of the NSView inside the window. how do i get the current origin of the NSOpenGLView (subclass of NSView) ?

The origin in terms of what? window/screen or view coordinates?

Review the following...

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaViewsGuide/Coordinates/chapter_3_section_3.html>

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaViewsGuide/WorkingWithAViewHierarchy/chapter_4_section_8.html>

-Shawn

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: NSView's origin
      • From: Shawn Erickson <email@hidden>
    • Re: NSView's origin
      • From: Scott Stevenson <email@hidden>
References: 
 >NSView's origin (From: Aaron Boothello <email@hidden>)
 >Re: NSView's origin (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: NSView's origin
  • Next by Date: Re: NSView's origin
  • Previous by thread: Re: NSView's origin
  • Next by thread: Re: NSView's origin
  • Index(es):
    • Date
    • Thread