Scroller partially visible in NSView
Scroller partially visible in NSView
- Subject: Scroller partially visible in NSView
- From: Stéphane BARON <email@hidden>
- Date: Mon, 5 Dec 2005 22:40:13 +0100
In my app i got a main window like the one in Mail.app
(one tableview (left tableview) and a split view composed of a
tableview and a textview, the split view is in a NSView)
in fact there is 6 NSViews composed with split view
when the user click on the left tableview the current NSView if
changed with this instance:
-(void)removeCurrentViewForView:(NSView *)newView;
{
[newView setAutoresizingMask:(NSViewHeightSizable |
NSViewWidthSizable)];
[newView setFrame:[currentView frame]];
[currentView removeFromSuperview];
[[mainWindow contentView] addSubview:newView];
currentView=newView;
}
the problem is that the size of the NSView doesn't permit to display
the vertical scroller of the table or the textview, only a little
part of it (the half left ) the rest of the scroller if off the window
this appen even if the scrollers are set to automatilly hide
and which ever the frame is.
How do i take in count the size of the scroller ??
Thanx
_______________________________________________
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