Another heavily-publicized feature of Lion is Versions, which keeps older copies of files as you save new ones and allows you to go back to previous copies to compare, restore, and copy-paste things you didn't mean to change. Unlike Resume, applications will need to be changed to support this functionality.

In a Versions-supporting program like TextEdit or Preview, you'll notice that the normal "Save" or command-S function is now called "Save a Version" instead. There's no special command you need to know to save Versions - if the app supports it, this happens automatically.

 

When you want to go back and look at your previous versions, select the Revert to Saved option in the menu to open the Versions interface.

You'll be presented with a very Time Machine-esque interface that will let you browse through your previously saved copies, compare them to your working copy, and restore an old copy to be your new working copy.

So how does this work? Versions stores its data at the root of your OS volume in a hidden and locked-down folder called 'DocumentRevisions-V100". Files are saved using the UID for each user account (the UID is a unique number assigned to each user account at time of creation, and is normally hidden from the user. All UNIX and UNIX-like operating systems use UIDs for user accounts). In the screenshot below, "501" is my account's UID, and the numbered folders each correspond to an individual file.

Drill down into any of the folders stored here, and you can see where OS X is keeping the older copies of your files.

Whenever you delete the source file, all stored versions of it are also deleted, so don't try to use Versions to recover accidentally deleted files - that's not what it's for, and you'll still need to be careful about what you do and don't keep.

It's not immediately obvious how many files OS X will store versions for, or how much disk space this hidden folder will take up if you let it, but disk space seems to be the limitation here - I was able to save 63 versions of an individual file without overwriting any older copies. Given Apple's desire to hide the seams and inner workings of OS X from regular users, I feel confident in saying that (1) OS X won't allow this system folder to take up so much space that it impacts OS performance or storage of regular files, and (2) there's probably some sort of safeguard present that will eventually begin deleting older versions of things as disk space runs low. This is how Time Machine works, and Versions is obviously taking cues from that feature.

System Information Resume
Comments Locked

106 Comments

View All Comments

  • VMFnet - Friday, July 22, 2011 - link

    I just installed Lion on a OCZ Vertex2 SSD and it still doesn't support TRIM. I guess support for this feature is limited to stock Apple SSDs only.
  • Sapan - Friday, July 22, 2011 - link

    Thanks for the reply. It is a shame that there still is no TRIM support.

    In the mean time I would recommend checking out a 3rd party program called TRIM Enabler:
    http://www.groths.org/?page_id=322

    Though the program is designed for Snow Leopard it works for Lion, but they are making a new version for Lion.
  • mdlam - Friday, July 22, 2011 - link

    I love how these diehard Apple fans are trying to resolve their discomforting feelings of exorbitant expenditure to Apple by

    A: Unreasonably denigrating other competitive alternatives.
    B: Exaggerating the usefulness of certain proprietary tools.
    C: Empathizing with the company's goals/missions/values

    All to resolve the realization that they are paying more money than what they are getting, which is...

    A totally outdated OS made to look streamline
    A pretty cool looking computer that uses tunnel fans (which are extremely loud) and likes to overheat.
    I used Snow Leopard on my Mac Mini for about 2 months and hated it. I think people force themselves to like OSX just because their laptop looks cool.
    Horrible graphics speeds. Their BEST video card that you can fit into a their $4500 Mac Pro, is a ATI 6500 series, which is like a 100 dollar card, and offers pathetic performance for gaming--I had a 6950 2gb and that was barely enough. You can argue that Mac pro's should be used for graphics design and other things and not gaming. If that's the case I don't see why they don't put a FireGL or other designer cards in. In any case, who buys a $4500 computer that comes with a bullcrap video card? Some people are IDIOTS.
  • mdlam - Friday, July 22, 2011 - link

    Edit: A $170 dollar video card, 6870 1gb...Which is a complete piece of garbage card that is 30% slower than the 5970 1gb. Guess how much the upgrade is? $200.

    Post is based off of cognitive dissonance theory
  • parlour - Monday, July 25, 2011 - link

    Macs don’t seem to be the right choice for you. That’s alright. Just don’t claim that everyone else has the same needs as you.
  • sjinsjca - Saturday, July 23, 2011 - link

    The test with the SSD is intriguing but there's a possibility that the FileVault performance hit might be less in the case of a conventional hard disk.

    Reason: hard disks are slower than SSDs, so there would be more idle states in which the OS could be performing encryption/decryption tasks.

    Worth a spot-check.
  • EnerJi - Sunday, July 24, 2011 - link

    That's a great point. I'd also love to know if the performance impact decreases with an HDD.
  • johnmacward - Tuesday, July 26, 2011 - link

    What annoys me is the fact that the recovery partition doesn't keep a copy of the Lion installer for instant re-installation - and with a bit of Apple magic even a copy that updates as the OS updates.

    A download each time is a possibly expensive prospect considering we all have data caps of some kind.

    It also turns a reinstall into a shockingly long 4 hour job which is a major pain.
  • luca108 - Tuesday, July 26, 2011 - link

    Small detail, but in the review you said you could only launch Launchpad by clicking the dock icon or using spotlight, but you can also set it as a hot corner. This is what I personally do... top left corner set for Launchpad and I can quickly get in and out of it to find my apps and utilities.

    I'm not suggesting it's quicker than using an apps stack on the dock... actually, its the exact same. But it definitely is faster than clicking the Launchpad dock icon or using spotlight to launch it.
  • Thrakazog - Tuesday, July 26, 2011 - link

    Does anyone know if Lion extended trim support to 3rd party SSD's, instead of only the ones apple provides ?

Log in

Don't have an account? Sign up now