Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
477 views
in Technique[技术] by (71.8m points)

macos - Trackpad gesture to switch to header/source

I used to be able to use three finger scroll-up to switch between source/header. Since upgrading to Lion, I it just does a regular scroll. Is there any way to get that feature back?

Aka, it doesn't jump to counterpart when I scroll up / down like it used to.

Update

Apple fixed the issue in Xcode 4.2. So, upgrade your versions.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is the correct and best answer. It works. It is posted by "@Buyin" above. Another individual commented that it doesn't work. He is wrong. It works, I've confirmed it. It restores the three finger vertical swipe to switch between interface and implementation files (.h and .m) in xCode in Lion.

From your terminal:

Change to appropriate directory (note, if your Library dir is hidden, in the terminal just type the following: chflags nohidden ~/Library )

1. cd /Users/YOURUSERNAME/Library/Preferences/ByHost

List files so you can see the .GlobalPreferences.XXXX-XXXX-XXXX-XXXX.plist

2. ls -lah

Open that plist file in xcode

3. open -a /Applications/Xcode.app ".GlobalPreferences.XXXX-XXXX-XXXX-XXXX.plist"

Set value to 1 for the key "com.apple.trackpad.threeFingerVertSwipeGesture"

Save the plist file

Log out and back into machine

VOILA!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...