cocoa - NSScrollView scroll position -


i have nsview in nsscrollview. nsview large , need scroll manage object inside.

i want draw static rectangle in center of nsview without scrolling. want scrolling point (the nsclippoint?) in drawrect method of nsview can draw rectangle @ last step of drawrect make on top.

i have looked through doc , find methods set scroll point, not getting it. how can point?

the answer [[myscrollview contentview] documentvisiblerect]


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -