title: Prevent Cocoa app from using virtual memory, or at least securely clear it after usage
body: <p>How can I prevent my Cocoa app from using any virtual memory, or if that is not possible, securely clear the virtual memory contents (on the hard drive) after usage?</p>
  
  <p>I'm worried about such things, because let's say I'm creating an app like 1Password that stores passwords. And let's say, while the passwords are temporarily shown to the user and read from memory, what if virtual memory is needed? Then I run the risk of having the actual passwords exposed on the hard drive for intruders to look at!</p>
  
  <p>Another example would be encryption software. A file is put in, and encrypted file is put out. If virtual memory is needed, the unencrypted file contents may be exposed on hard drive. This is very bad, because the user would expect only the original file itself to be exposed. The user would not expect the file contents to lay exposed on the hard drive because of virtual memory usage! In fact, the user shouldn't have to worry about such things.</p>