Thats a clever approach! I'll try it.
Thx!
Russ

On Jul 25, 2008, at 6:10 PM, Andrew Merenbach wrote:

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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to