What's 2+3? 5 of course! But what if you want it to be 6? Or -1? Its easy to fool your fellow Mac users with a little help from InterfaceBuilder.
Open up the .nib file from any application (I use Calculator as an example), but make a backup first in case you screw up somewhere. In order to swap the - and + buttons on the calculator, all you have to do is re-connect the subtract button to the add action (and vice-versa). Whilst holding down control, click on the - button in the calculator window in Interface Bulider and drag the blue line over to the CalculatorController icon in the Calculator.nib window. Click on the "add:" action in the top-left area of the "Inspector" window that appears, and then click "Change Action" at the bottom of the window. Do the same for the add button and "subtract:". Save, run Calculator and BINGO! - clicking subtract now adds.
This is just a simple example. You can even modify menu items (change 'New...' to 'Quit' for hilarious consequences).
Of course none of this will work without write access to the Applications folder (ie. an adminisrator account), and you'll need the Developer's Tools installed in order to get InterfaceBuilder.
[Editor's note: Use at your own risk, as alays ... and this is a GREAT example of why you might want to use a locking screensaver when you leave your computer alone for a bit!]
OmniWeb has a forms autofill feature which can auto-complete form data on various web pages. I had previously published a long, drawn out method of making it work, but 'vgz' pointed out the incredibly obvious method for doing so...so my apologies for missing the easy way out! I made the incredibly simple seem complicated!
Once you've completed an on-screen form in OmniWeb, but before you submit it, simply select "Save Form for AutoFill" under the Browser menu, and you will now be able to re-complete the form quickly and easily in the future - by selecting "AutoFill Form" under the Browser menu.
To make it even easier, put the AutoFill button on the customized toolbar (I didn't see a button for "Save as AutoFill", which would also be nice to have on the toolbar).
Terminal is a great app to get around your filesystem but it gets to be a pain in the hands to type those long pathnames. Here's some quick tips on typing paths or filenames in terminal.
1. If you want to get to your home directory quickly, just type ~ and hit return. You will be at the root level of you're home directory. Note if you are su'd as root you'll go to root home dir.
2. When type paths or file names, start typing the path and hit tab. Your Terminal (shell) will complete the word for you. If nothing appears to happen, hit tab again and shell will give you all the words in that path that have the partial of what you typed.Start typing again till you are past the uniqueness of the word and hit tab to finish typing the word for you. A little practice and you can navigate the CLI faster than point and clicking.
See the rest of this article for some additional examples and comments.
OS X uses the tcsh shell for the terminal. There are a number of others you can install, including bash, which is probably the most popular. If you've installed one of these alternate shells, however, you may find that your FTP access has been disabled.
There's a file called shells that lives in /etc, and it contains a list of paths to known shells. The FTP server uses this file to limit the types of shells remote users will be allowed to connect with. The problem is that if you install a shell, it may or may not go where the shells file says it will go. For example, shells lists 'bash' as installed at /bin/bash, but it would more than likely be installed in /usr/local/bin/bash). If you try to connect and have a non-authorized shell, you'll see a message that says User username access denied.
The fix is simple - edit the /etc/shells file and make sure that the proper path to your alternate shell saved in the file. This tip was seen today on the X4U mailing list...
Anyone remember the good ole way of navigating from the current open window with the arrow keys? If not, don't worry I will explain. If you do remember, OS X allows the same navigation, no need to read on.. just happy arrowing.
[Editor's note - read the rest of the article for one take on browsing the new finder using arrow keys and modifiers to great effect; there's some stuff in here that I'd never even thought to try before!]
At times you'll want to grab a selection of text different apps for any number of purposes. For example, you may be viewing a post in this "Tips" forum and want to keep a particular paragraph within a particular post.
Previously, you would have selected the text and dragged it to the desktop as a "clipping." This still works, but it clutters up your desktop.
Here's a better way:
Select the desired text -- in any Cocoa application -- and choose "Services" and then "Make Sticky" under the menu with your applications title in it (the menu just to the right of the Apple menu; it will have the same name as the application you're in). Stickies will launch if it's not already running, and create a new note with your selected text.
[Editor's addendum: In my opinion, system-wide services are one of the coolest and probably least publicized features of OS X. Take a look at the Services menu (under the application's name in the menu bar) for examples of what you can do.
Most services seem to be available even if the service app is not running; the application will launch when the service is selected. "Grab" services appear broken, at least in my 10.0.3 - it doesn't work with or without Grab running.
At present, only Cocoa apps can take advantage of services; hopefully, Carbon apps will gain the ability at some point in the future. I personally think services could turn into one of the most useful features of X]
If you want to enable automatic login on Mac OS X remotely you can to this by using ssh and the niutil command. This requires that you have enabled "Allow remote login" in the System Preferences, of course.
1) Open an ssh session to your Mac.
2) type su to become root.
3) To enable the automatic login, the property "username" must be found by loginwindow in the local netinfo database. Here is how you do it:
Thanks to macosxhints' user 'louisdeboer' for pointing this one out. If you option-click on any of the window widgets at the top left of an application window (most Carbon or Cocoa apps, it seems), it behaves just as though you option-clicked a widget in the old Finder - the action is passed to all open windows. Want to minimize all of OmniWeb's open windows? Just option-click the minimize button. Similarly, option-click the close button, and they all close.
Check your software update panel ... I just installed it, and I'll post back details after I restart!
OK, here are the details. The modified files list seems to indicate that there have been changes to the BSD kernel, ADB I/O, CD storage, DVD storage, graphics I/O, networking, PCI, and a number of other areas. I've posted the whole list in the remainder of the article, in case you'd like to see it (it's not too long).
As for the operational changes, I can't say that it feels much different, but I'll have more to say after I get a chance to re-run my benchmark suite this evening. Apparently it squelches one bug in the Finder dealing with folders with large numbers of items. If you had over some relatively small number (600ish) in one folder, all the Finder would show was 539. They'd be there (you could see them in FTP or the terminal), but the Finder wouldn't work with them.