I’m trying to build something similar to the pull to refresh concept so popular in iPhone applications using NSScrollView in Lion, but there’s no such property as contentOffset, and the frame doesn’t seem to be affected when I scroll above the limit.
Is there any sample code around on how to do this?
twitter for Mac does it pretty well but i don’t know how they managed to accomplish it!
I’m trying to build something similar to the pull to refresh concept so popular
Share
Register for scrolling notifications like so:
Then use
[[scrollView contentView]bounds].origin.yto determine how far the view is scrolled and to respond accordingly.