• 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: Repositioning a content view w/in a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repositioning a content view w/in a window


  • Subject: Re: Repositioning a content view w/in a window
  • From: "R.L. Grigg" <email@hidden>
  • Date: Fri, 25 Jul 2008 18:16:30 -0700

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 (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


  • Follow-Ups:
    • Re: Repositioning a content view w/in a window
      • From: Graham Cox <email@hidden>
References: 
 >Repositioning a content view w/in a window (From: "R.L. Grigg" <email@hidden>)
 >Re: Repositioning a content view w/in a window (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: Repositioning a content view w/in a window
  • Next by Date: Re: Drawing a drop-shadow around a view
  • Previous by thread: Re: Repositioning a content view w/in a window
  • Next by thread: Re: Repositioning a content view w/in a window
  • Index(es):
    • Date
    • Thread