• 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
Scroller partially visible in NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: NSToolbar missing notification?
  • Next by Date: Re: Do bindings "pay attention" to visibility of control?
  • Previous by thread: Re: Are NSViews autoreleased or released?
  • Next by thread: +[NSData dataWithContentsOfURL:] leaks memory?
  • Index(es):
    • Date
    • Thread