Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Fun with Calculator and InterfaceBuilder Apps
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!]
  Post a comment  •  Comments (0)  
  • Currently 2.71 / 5
  You rated: 5 / 5 (7 votes cast)
[3,113 views]  View Printable Version
Using autofill to save typing in OmniWeb Web Browsers
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 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).
  Post a comment  •  Comments (2)  
  • Currently 1.80 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
[2,762 views]  View Printable Version
Type Faster in Terminal UNIX
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.
read more (159 words)   Post a comment  •  Comments (5)  
  • Currently 3.00 / 5
  You rated: 2 / 5 (3 votes cast)
[5,302 views]  View Printable Version
Start file sharing from the terminal UNIX
This may be useful for some people. To start file sharing from the terminal do the following:
cd /usr/sbin
  Post a comment  •  Comments (2)  
  • Currently 3.67 / 5
  You rated: 4 / 5 (3 votes cast)
[8,507 views]  View Printable Version
FTP access and non-standard shells UNIX
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...
  Post a comment  •  Comments (3)  
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
[4,976 views]  View Printable Version
Navigating the Finder old-school style... Desktop
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!]
read more (290 words)   Post a comment  •  Comments (3)  
  • Currently 3.33 / 5
  You rated: 2 / 5 (3 votes cast)
[6,337 views]  View Printable Version
Grab text with Stickies service Apps
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]
  Post a comment  •  Comments (7)  
  • Currently 1.43 / 5
  You rated: 2 / 5 (7 votes cast)
[4,886 views]  View Printable Version
Remote activation of auto-login System
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:
niutil -createprop -t localhost/local /localconfig/autologin[space]
username user_to_log_in
(NOTE: shown on two lines; replace [space] with an actual space character and enter on one line)

Replace "user_to_log_in" with the username of the user who will be automatically logged in on restart.

4) Type "reboot" to restart you mac and see if it worked.
  Post a comment  •  Comments (1)  
  • Currently 3.33 / 5
  You rated: 2 / 5 (3 votes cast)
[4,464 views]  View Printable Version
Option-click window widgets Apps
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.
  Post a comment  •  Comments (2)  
  • Currently 2.57 / 5
  You rated: 4 / 5 (7 votes cast)
[3,388 views]  View Printable Version
10.0.3 update is out... System
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.
read more (62 words)   Post a comment  •  Comments (15)  
  • Currently 2.29 / 5
  You rated: 5 / 5 (7 votes cast)
[5,788 views]  View Printable Version