### About TeXShop

#### 64 Bit Code

Version 3 of TeXShop has been converted to 64 bit code, and in the process a large number of warnings were eliminated and a large number of deprecated calls were replaced by modern equivalents. This conversion, incidentally, was done on Snow Leopard and the 64 bit code runs on that system (the Snow Leopard version has not been released).

Users might find glitches related to the 64 bit conversion. Please report problems and we'll try to fix them rapidly.

Users who compile TeXShop from source will still notice warning messages because certain warnings from the conversion process have not yet been systematically investigated.

#### Resume

The Lion features discussed in this section were refined in Mountain Lion. In Mountain Lion, holding down the Option key changes the "Quit" command in the TeXShop menu to "Quit and Keep Windows." Once this is done, the next time TeXShop is run, the windows that were open when TeXShop was quit will reappear in their old positions. This will not happen with a normal "Quit" command.

This behavior can be changed back to the Lion behavior described below by unchecking the item "Close windows when quitting an application" in the General Pane of Apple's System Preferences.

TeXShop is constructed using object oriented programming and an Apple class library called Cocoa. One of the dreams of object oriented programming is that Apple could enhance the class libraries and then all programs would automatically get new features without even being recompiled. In Lion, that happens in a very magical way. If you quit a Lion program without closing all the windows, the next time you start the program, these windows will reappear exactly as you left them. The source code will be scrolled to its old spot, multiple documents will be opened, etc. If the system is shut down while programs are running, programs resume operation automatically when the machine is rebooted. Any program written with Cocoa using the NSDocument class automatically inherits this behavior.

In particular, the original TeXShop 2.43 behaves this way without any new code, and certainly version 3 of TeXShop inherits the behavior.

Occasionally you may want to Quit TeXShop without allowing it to open old windows the next time it runs. To do that, hold down the "Option" key and notice that the menu command "Quit TeXShop" has become "Quit TeXShop and Discard Windows." Select that item.

Similarly, you may wish to start TeXShop without loading old windows. To do that, hold down option-shift while starting the program.

These two "option" tricks work with all Lion programs.

The default resume command is not perfect. In the case of TeXShop, source windows are correctly scrolled to their old position, but preview windows are scrolled to the start of the file. Since syncTeX works, this is not a significant problem because users can sync from the source window to recover their old preview position. But there are other minor glitches. For instance, if you select a different engine in the source toolbar's pulldown menu, that engine will not be preserved on resume.

Apple documentation explains how to fix such glitches. Since "resume" works so well by default, I spent my time before Lion on other features, but the glitches will gradually disappear from TeXShop as it is upgraded over the next months.

#### Find Bar

TeXShop now has three options to handle Find and Replace. As in earlier versions, users can select the Apple Find Panel or the OgreKit Find Panel. There is now a third option, the Apple Find Bar. Select the desired option in TeXShop Preferences.

The Apple Find Bar looks more or less like it does in TextEdit and Safari. It appears at the top of the source window when needed, taking very little room. Apple crammed a lot of functionality in that small space, so it is worth taking time to explore the various options.

Note that finding additional matches is done by clicking the arrows in the Find Bar, and "Replace and Find" is done with a button in the bar. It is also possible to find more matches using apple-G and apple-shift-G, but these only work if you click first in the main source text to make it active.

Additional polish will be added to this option over time.

Lion
New Features (I)