• 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
Scrollview can anyone help?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scrollview can anyone help?


  • Subject: Scrollview can anyone help?
  • From: April Gendill <email@hidden>
  • Date: Tue, 30 Mar 2004 08:43:55 -0700

I still cannot get this scrollview thing to work

once more this is the code I'm using:

-(void)awakeFromNib
{
NSRect scr = NSMakeRect(20,20,420,540);
NSRect tab = NSMakeRect(0,0,444,536);

NSTabView * theTabs = [[NSTabView alloc]initWithFrame:tab];
[theTabs setTabViewType:NSRightTabsBezelBorder];
[theTabs setAutoresizingMask:NSViewWidthSizable];
int i=0;
while (i <20){

NSTabViewItem * item = [[NSTabViewItem alloc]init];
[theTabs addTabViewItem:item];
i++;
}

scroll =[[NSScrollView alloc]initWithFrame:scr];
[scroll setFrame:scr];

[scroll setPostsFrameChangedNotifications:YES];
[scroll setAutoresizesSubviews:YES];
[scroll setScrollsDynamically:YES];
[scroll setHasHorizontalScroller:YES];
[scroll setHasVerticalScroller:YES];
[scroll setDocumentView:theTabs];
//[testWindow setContentSize:[scroll contentSize]];
[scroll setAutoresizingMask:NSViewWidthSizable];
[testWindow setContentView:scroll];
}

I cannot get a border around the scrollview so that I can place buttons at the bottom of the window and simply have an attractive looking window. Second I need the tab view to be it's full size no matter how many tabs there are so that the scroll bar will act as if it's scrolling through the tabs. Either way I cannot get the tabview within the scrollview to resize correctly. (Width and height) is there any one out there that may be able to help or is what I'm doing simply not possible.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Scrollview can anyone help?
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Accessing the FUS menu?
  • Next by Date: Re: Scrollview can anyone help?
  • Previous by thread: Re: Accessing the FUS menu?
  • Next by thread: Re: Scrollview can anyone help?
  • Index(es):
    • Date
    • Thread