Re: Repositioning a content view w/in a window
Re: Repositioning a content view w/in a window
- Subject: Re: Repositioning a content view w/in a window
- From: Andrew Merenbach <email@hidden>
- Date: Fri, 25 Jul 2008 18:10:58 -0700
Hi!
The content view of a window is, as far as I should think, going to
extend to the window's boundaries. Thus you can't move it up/down or
left/right -- but you can put your content within a *subview* of that
content view, then position it as necessary.
Cheers,
Andrew
On Jul 25, 2008, at 6:08 PM, R.L. Grigg wrote:
I've created a NSWindow and set a content view. That displays fine,
but I need to be able to fine tune the position of the content view
within the window.
In the docs for NSWindow -setContentView it says:
"You can modify the content view’s coordinate system through its
bounds rectangle, but can’t alter its frame rectangle (that is, its
size or location) directly."
What can I use to move the content view's location up/down or left/
right within the window?
Xcode 3.1, OSX 10.5.4
Russ
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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