Post

Replies

Boosts

Views

Activity

Xcode preference "highlight instances of selected symbol" not working
I turned on the preference setting "xcode "highlight instances of selected symbol" not working" so symbols would highlight with the underline. I have the project NewtonsCradle open and the file NewtonCradle.swift open. When I select a symbol inside of a function it doesn't highlight the other occurences. I have seen it work with other files but I can't reproduce it. I changed the file and saved it to make sure it was wrightable thinking that was the problem. Also the Refactor items are all greyed out.
1
0
2.5k
Oct ’16
AppleScript how to get the document of current tab
I'm trying to get the current source document using applescript. I need to modify the text selection. Getting the first, last or front source document doesn't work all the time. You ask for front document and it may be correct. Then you change docuemts and ask again and you still get the last one. It also needs to work if Tab windows are shown. I don't see any object that contains the current editing document. I also need to know if the document has the current focus, don't want to do a copy if the edit window isn't the focus.
3
0
2.2k
Feb ’18