Archive for March, 2010

TextWrangler with Subversion on Mac

Amazing what you’d find if you read the manual!

Even though TextWrangler is a window-based editor for the Mac, it comes with this useful terminal command: edit. Executing this command loads TextWrangler from the command line.

How is this useful for a window-based environment like the Mac? Well just recently I was configuring my Subversion environment on my Mac and wanted to use TextWrangler for my comment editing needs. Using the edit command, making this configuration is as simple as loading up the config file (by default in ~/.subversion/config) and changing the editor-cmd entry to:

editor-cmd = edit -w –resume

-w blocks the edit command from returning until the file is closed in TextWrangler.

–resume will restore the last top-most app before TextWrangler launched. In this case, the Terminal window.

config1.png

Now every time I checkin, the svn command will automatically launch TextWrangler with the comment file for me to fill out!

,

No Comments

UITableView Background in a Standard UIView

While exploring the CoreDataBooks sample iPhone app, I came upon the EditingViewController which I noticed had the same grey/white bar background as does a UITableView has when it’s in grouped style. After fiddling with the Background property for some time, I eventually figured out how to set the Background to the same background pattern.

1. Open the Inspector window for UIView and click Background.

01.png

2. Select “Color Palettes” (middle icon) and in the Palette drop down, select “iPhone SDK”.

03.png

3. In the options, select “groupTableViewBackgroundColor” and you’re done!

04.png

Your view should now have the same bar pattern as a grouped table view!

05.png

,

No Comments