Skip to content

Commit

Permalink
Replace NSLog with NSAlerts for the cases that actually happen.
Browse files Browse the repository at this point in the history
The NSLogs are still there, just disabled. Maybe add in runtime switch or
something.
  • Loading branch information
tom-seddon committed Aug 21, 2012
1 parent 05a38f2 commit 715bdd2
Show file tree
Hide file tree
Showing 2 changed files with 170 additions and 75 deletions.
10 changes: 5 additions & 5 deletions XCFixin_UserScripts/UserScripts.org
Expand Up @@ -25,8 +25,11 @@ symlinks to them. Any it finds have their names added to the new
Select script from the menu, and the script runs. The current
selection is passed to the script as its standard input.

The script's standard output replaces the current selection. Any
standard error output is ignored.
If the script's exit code is 0, the script's standard output replaces
the current selection.

If the script's exit code is anything else, an alert box is shown with
the first 1K or so of the script's standard error output.

* Setting selection from a script

Expand Down Expand Up @@ -116,9 +119,6 @@ The current option names are:
- The key equivalent emacs notation 'thing' is lame and I need to find
some better way of doing it.

- Error reporting is not great. If you run Console.app, you might find
that the fixin has printed something useful there.

- If you run a script on text that includes the string
"%%%{PBXSelection}%%%", that string will disappear. (Presumably this
happened in Xcode3 too?)
Expand Down

0 comments on commit 715bdd2

Please sign in to comment.