• 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
Re: How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen (From: Janakiram <email@hidden>)

  • Prev by Date: Re: KVO one-step listening but two-step notifying?
  • Next by Date: print a downloaded jpg
  • Previous by thread: How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen
  • Next by thread: Re: How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen
  • Index(es):
    • Date
    • Thread