First, disclosure that I may indeed have code to fix this, but I'm on a marathon stretch and don't have time to boot back to Lion until I get my work done. With that said:
On Apr 29, 2012, at 12:39 AM, Peter Teeson wrote: Calm down Alex. Take a few deep breaths. Look out the window at the spring flowers. I believe that you are frustrated but venting here is not going to help you address them. It will only discourage people from trying to hold out a helping hand.
Perhaps try to be more detached and more analytical and describe your issues scientifically? For example I have no idea what you mean when you say "bouncing scroll views" or
Every scrollable item in Lion can "bounce", be elastic. In iOS, it's called the view "bounces", in Lion, it's called NSScrollElasticity for an NSScrollView. On the Mac OS, it's just insipid behaviour since there is no user exposed setting to TURN IT OFF.
Bouncing ScrollViews = NSScrollView.NSScrollElasticity = NSScrollElasticityAllowed or NSScrollView.NSScrollElasticity = NSScrollElasticityAutomatic
On your HD, you can see it here: /System/Library/Frameworks/Appkit.framework/Versions/C/Headers/NSScrollView.h
#if MAC_OS_X_VERSION_10_7 <= MAC_OS_X_VERSION_MAX_ALLOWED enum { NSScrollElasticityAutomatic = 0, // automatically determine whether to allow elasticity on this axis NSScrollElasticityNone = 1, // disallow scrolling beyond document bounds on this axis NSScrollElasticityAllowed = 2, // allow content to be scrolled past its bounds on this axis in an elastic fashion };
I happen to have 3 magic mice. When you flick your finger on the middle region of the thing, the scrollView underneath it scrolls. In versions of the OS prior to Lion, when the scroll region/scroll view hit the end of the scroll area, it stopped. In Lion, the scrollView scrolls past the end and "elastically" bounces back.
This is completely terrible in Xcode's editor when your code's scroll view bounces when you scroll through your code this way and hit the end. Who is trying to "entertain the programmers" with bouncy, elastic scrollViews? "turning all this garbage off".
Yes, so much animated garbage I dare not list it. For sure asking Jesus to help is always a good thing to do (unless you are using His name in vain.)
I make it a habit to use his name in vain on a daily basis just to test the fates. BTW I am only registered as a freebie user developer. It's always been sufficient for my needs. Nevertheless if we can be more specific and calm, then possibly we can find the answers.
It's been 9 months since Apple released Lion. The fact that this is not addressed is inexcusable. So let's start with these queries:
(0) You installed Lion on an SSD partition. Are you at 10.7.3?
Yep. (1) Have you altered or added anything (other than Xcode) to the standard install?
Of course. I've been turning all the garbage off. But this happens with every scrollable window in Lion. Try it with TextEdit. (2) How did you install Xcode? App store? Download dmg from developer site?
Downloaded the latest DMG from the Dev site. The App Store is evil. (3) Are you at Xcode 4.3.2? It fixed a multitude of sins.
I am at 4.3.1. I could have sworn I downloaded 4.3.2, but I guess not. I'll install it sometime this AM when I'm done getting storyboards to stop crashing. (4) Being iOS only should not to make a difference to Xcode behaviour except for iOS projects.
I do not do iOS projects at this time - mine are desktop/database/games and kernel exotica.
Ya, I didn't have access to the 10.7 Mac OS docs before, but I guess I do now. (5) Although I don't do iOS the Component downloads are available for me to install although I haven't tried. Are the MacOS ones available for you? (See Preferences Downloads and select Components tab)
No idea. Don't worry about that. I'll have to reboot to try and see if the patch I have will properly override this little bit of stupid from iOS that someone thought wise to inflict on the Mac experience. (6) But the Documentation for iOS is available to me and downloaded. How about your MacOS documentation? Is it available for download? (see preferences Documentation tab)
Since I mainly live in the joyous world of NOT BEING ON LION, I generally don't have access to the 10.7 docs. Since I put Lion on one of the SSD partitions today, I've got access to it now. I'll include the details later. (7) I don't use Safari. I use Firefox 11.0 so can't help you there.
Yeah, Safari's become a bloated memory pig thanks to _javascript_. Long gone are the days when I can have 125 tabs open in a multitude of windows on a Mac with 2 GB of RAM. I've got 16 GB now and that's mainly because Safari's such a pig.
Meanwhile peace be with you….
More like hallucinations and sleep deprivation.
Visions of SIGFAULTS will be dancing through my head.
Cheers.
Just remember that some VERY NICE PERSON mailed me some source that should fix this that I will try compiling after I get my work done. Thanks again
Oh, here is the little blurb I wrote up today about this. Pardon my lack of editing it. It's 1AM here.
Here is my research from the day.
On iOS, there is a thing called a UIScrollView. Setting bounces to 0 makes the scrolling not bounce. Lion is different. It uses an NSScrollView. (I just did the research) In it is a property called "Elasticity" which determines this: Allow content to be scrolled past its bounds on this axis in an elastic fashion. Things that scroll generally sit within an NSScrollView on the screen. It turns out the NSScrollElasticity is responsable for that. It's defined in NSScrollView.h. #if MAC_OS_X_VERSION_10_7 <= MAC_OS_X_VERSION_MAX_ALLOWED enum { NSScrollElasticityAutomatic = 0, // automatically determine whether to allow elasticity on this axis NSScrollElasticityNone = 1, // disallow scrolling beyond document bounds on this axis NSScrollElasticityAllowed = 2, // allow content to be scrolled past its bounds on this axis in an elastic fashion }; If you open this folder, you can see the file on your hard drive. /System/Library/Frameworks/Appkit.framework/Versions/C/Headers/NSScrollView.h Dunno if modifying that file would help anything, but in any case, I would love for a preference file (pList) to automatically set all NSScrollViews for an app to use NSScrollView.NSScrollElasticity = NSScrollElasticityNone I think that would work, but I don't yet know how to do it and do it for all apps.
|