• 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: NSSplitView Messing Up Custom Views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSplitView Messing Up Custom Views


  • Subject: Re: NSSplitView Messing Up Custom Views
  • From: Johan Kool <email@hidden>
  • Date: Mon, 24 Jan 2005 16:52:57 +0100

On Fri, 21 Jan 2005 03:13:13 +1030, Jonathon Mah <email@hidden> wrote:
> On 19 Jan 2005, at 08:44, Oliver Cameron wrote:
>
> > Hi guys,
> >
> > I have a NSSplitView that has 2 subviews, each subview is the same
> > custom NSView, you can see it below at this URL:
> >
> > http://www.talacia.com/screenshots/1.jpg
> >
> > The problem I am having, is that when you move the split view right to
> > the very top of the NSSplitView (or the bottom) the top (or bottom) of
> > my NSView seems to be getting cut off, like so:
>
> Perhaps you're not redrawing the headers correctly when you need them.
> What if you replace your TableView (which has custom drawing) with a
> standard NSTableView? If it works OK with the standard one, you should
> probably look for somewhere where you should be redrawing, but aren't.
>

Hello,

I don't think it's a redrawing problem, but somehow an improperly
setup nib file. I've included a small nib file that demonstrates the
problem. I have been fighting with it lately too and can't find the
proper way to set all the springs.

The two tableviews should resize with the window and the splitview to
fill any extra space the user gives it. The text above it should stay
left aligned above it. It doesn't for me when I move the splitview
handle all the way to the top and then back down. That really messes
stuff up.

How to set this up properly in IB?

Thanks,

Johan Kool

Attachment: splitviewdemo.nib
Description: Binary data

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSSplitView Messing Up Custom Views
      • From: Johan Kool <email@hidden>
References: 
 >NSSplitView Messing Up Custom Views (From: Oliver Cameron <email@hidden>)
 >Re: NSSplitView Messing Up Custom Views (From: Jonathon Mah <email@hidden>)

  • Prev by Date: Re: Capturing 'pageup' and 'pagedown' keys in NSTextField
  • Next by Date: Re: NSSplitView Messing Up Custom Views
  • Previous by thread: Re: NSSplitView Messing Up Custom Views
  • Next by thread: Re: NSSplitView Messing Up Custom Views
  • Index(es):
    • Date
    • Thread