• 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
SplitView probbs, hmm...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SplitView probbs, hmm...


  • Subject: SplitView probbs, hmm...
  • From: Gore <email@hidden>
  • Date: Wed, 23 Jan 2002 23:39:17 +0200

My split view just wont change the divider height, I've read the docs lime 100 times andstill it wont work, I've checked the delegate connection and everything, am I still doing something wrong here?! my code:

NSRect splitFrame = [splitView frame];
NSRect view1Frame = [mainList frame];
NSRect view2Frame = [noteTextView frame];

view1Frame.size.height = 100;
view2Frame.size.height = (splitFrame.size.height-[splitView dividerThickness])-view1Frame.size.height;

[mainList setFrame: view1Frame];
[mainList setNeedsDisplay: YES];
[noteTextView setFrame: view2Frame];
[noteTextView setNeedsDisplay: YES];
[splitView setNeedsDisplay: YES];
[splitView adjustSubviews];

in the dcs it ses that I should just "simply" change the size of my views inside the splitview...I am doing it now but still it wont just work. When I try this code I can see that the scrollbar at the NSTextView that I am changing size of grows, but the deivider dosn't move out of its place. Thx


  • Follow-Ups:
    • Re: SplitView probbs, hmm...
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: NSTableView edit text-field help please?
  • Next by Date: Re: SplitView probbs, hmm...
  • Previous by thread: Re: Calling BSD from Cocoa and/or CFM?
  • Next by thread: Re: SplitView probbs, hmm...
  • Index(es):
    • Date
    • Thread