3

I had a project wide find/replace search all set up yesterday in my Xcode project. Today when I get back to Xcode (without restarting or touching it in any way) the search text has changed. The weirdest thing is that the search text is now the same as a text search I made today in Google Chrome(!). I know for a fact that I haven't searched for "shipping costs" in my Xcode project.

Could someone explain what's going on? I don't particularly like it when applications throw away my data and I would like to prevent this from happening again.

1 Answer 1

1

Find/replace uses what's known as the Kill Ring, rather than regular Copy/Paste

It's similar to the regular Copy/Paste buffers, but uses a separate memory area.

You can 'Kill' using Ctrl ⌃ K which is similar to Cut &
'Yank' using Ctrl ⌃ Y which is like Paste.

The kill ring is also used in a lot of search routines, so will be replaced any time you perform a new search.
Don't rely on it as a data store.

2
  • Interesting, but I can't get those shortcuts to work and it seems difficult to find any documentation on this feature. I can't see the beauty of find/replace using either the kill ring or the clipboard to store the data in though...
    – Andreas
    Dec 20, 2015 at 17:09
  • osxdaily.com/2012/02/01/…
    – Tetsujin
    Dec 20, 2015 at 17:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .