Re: NSView's origin
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