Thoughtful, detailed coverage of the Mac, iPhone, and iPad, plus the best-selling Take Control ebooks.

 

 

Pick an apple! 
 
Sleep (and Lock) Your Screen

When you are walking away from your computer, it's fairly common practice to start your screen saver and lock your screen. But did you know that there is a built-in keyboard shortcut in Mac OS X to sleep the screen?

Press Control-Shift-Eject and your monitor sleeps without engaging the screen saver.

Visit Apple Support Discussions

Submitted by
Lewis

 
 

FoxPro/Mac Rumors

Send Article to a Friend

Pythaeus writes that long after buying Fox Software, Microsoft may finally release FoxPro for Macintosh, probably at Macworld Expo in San Francisco for $495. Here then are some details about cross-platform development work with FoxPro, which is rumored to be the fastest Mac database when it ships.

FoxPro/Mac is cross-platform, so applications that you build can be somewhat easily transported to DOS and Windows, and perhaps next summer, to Unix too. Once you transport and adjust applications for each platform, the code for both platforms exists in the same file. In other words, you can have a Windows, a DOS, and a Mac client all using the same program and data files on your server.

Current FoxBASE+/Mac users will be far behind if they haven't already started using FoxPro for Windows, since commands for dealing with screens, menus, and so on have all changed dramatically. Microsoft includes an application that attempts to update your code from FoxBASE+/Mac, and it's fairly successful. However, you lose the benefits of FoxPro/Mac's excellent screen and menu generation facilities.

FoxPro's methods for handling platform differences are both useful and disturbing, but understandable considering that Microsoft is the developer. For example, pathnames can either be Mac style, "HD:Foxpro:My Program:Program.prg" or DOS style, "HD:\Foxpro\MyProgrm\Program.prg". However, all of FoxPro's functions return only DOS-style pathnames. The trick here is to avoid backslashes in your Mac filenames.

For developers who must ship their programs the day that Microsoft releases FoxPro/Mac, consider moving your code to FoxPro for Windows today to simplify porting back to the Mac and to possibly increase market share. Be careful of font differences, and note that FoxPro/Mac supports basic Apple event scripting (using the doScript event to call FoxPro functions), but not DDE, Microsoft's proprietary method of data sharing between applications in Windows.

 

Fujitsu ScanSnap Scanners — Save your business time and money
with our easy-to-use small ScanSnap Scanner line. Eliminate
paper piles by scanning documents, business cards, and receipts.
Visit us at: <http://www.ez.com/sstb>