Re: How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen
Re: How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen
- Subject: Re: How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen
- From: Fritz Anderson <email@hidden>
- Date: Fri, 23 Dec 2005 09:08:41 -0600
On 23 Dec 2005, at 1:30 AM, Janakiram wrote:
I have observed that whenever nstableview/nsoutlineview comes onto
a view/window , the control i self automatically reloads . How can
a control knows when it comes to visible on screen.Please send me
your suggestions on this. Thanks in Advance.
It's not clear whether by "becomes visible" you mean when the view is
added to the on-screen view, or when it is scrolled/resized into
visibility in the on-screen view.
NSControls are NSViews. When a view is added to a superview, it is
sent the messages viewWillMoveToSuperview: and viewDidMoveToSuperview:.
When scrolling or resizing exposes a new part of the view, the newly-
visible part of the view is invalid, and the new area's bounding box
is passed as the NSRect parameter to drawRect:. The table and outline
view classes use the data-source delegate methods to pull the data
for the exposed area during drawRect:.
-- F
--
Fritz Anderson
Consulting Programmer --
http://resume.manoverboard.org/
Step into Xcode, coming out late January --
http://six.manoverboard.org/
_______________________________________________
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