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!]
  • Currently 2.71 / 5
  You rated: 5 / 5 (7 votes cast)

Fun with Calculator and InterfaceBuilder | 0 comments | Create New Account
Click here to return to the 'Fun with Calculator and InterfaceBuilder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.