• 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: Trouble with NSView resizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with NSView resizing


  • Subject: Re: Trouble with NSView resizing
  • From: Rick Mann <email@hidden>
  • Date: Sun, 27 Mar 2011 01:22:44 -0700

On Mar 27, 2011, at 12:05 AM, Quincey Morris wrote:

> On Mar 26, 2011, at 23:22, Rick Mann wrote:
>
>> They'll keep going 'till the go *over* the panel's title bar, and then they're clipped by the outer boundary of the panel.
>
> It sounds like you added the views to the wrong place in the view hierarchy. Instead of adding them somewhere below the panel's content view, you've added them to the panel's content view's superview (or further up, if there is more hierarchy up there -- I don't really know, since everything above the content view is private to the frameworks).

I double-checked. Everything is fine. The NSView I use as a container of the views I add at run-time is just a plain view inside the content view. Note that all my views move funny, run-time added or not.

I just noticed, however, that the content view bindings were fixed upper, and fixed right margins. Not sure how they got that way, but by adding left and bottom, it behaves correctly. The behavior I got doesn't make sense, but it's working now.

Thanks,
--
Rick



_______________________________________________

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

References: 
 >Trouble with NSView resizing (From: Rick Mann <email@hidden>)
 >Re: Trouble with NSView resizing (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Trouble with NSView resizing
  • Next by Date: Re: copyPath:toPath:handler: more reliable than copyItemAtPath:toPath:error: ???
  • Previous by thread: Re: Trouble with NSView resizing
  • Next by thread: Pasting a PDF image in text: NSCGImageSnapshotRep and upside down drawing
  • Index(es):
    • Date
    • Thread