• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Objective-C Beautifier?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Objective-C Beautifier?


  • Subject: Objective-C Beautifier?
  • From: Karl Moskowski <email@hidden>
  • Date: Wed, 12 Nov 2008 10:42:31 -0500

Does anyone know of a good, Objective-C-friendly set of configuration options for an existing C-code beautifier, e.g., bcpp <http://invisible-island.net/bcpp/bcpp.html > or uncrustify <http://uncrustify.sourceforge.net/>?

The default config files I've tried are a little lacking when it comes to Obj-C:
- in some cases, they add a space before colons in selector names
- in some cases, they add a space after @ in string literals
- they don't align things in multi-line method calls
I'd also like something that correctly adjusts spacing around parentheses and operators (e.g., if (condition) -> if( condition )).


BTW, in case anyone's interested trying them out, here's info on adding a bcpp menu to TextMate, which can easily be adapted to Xcode.
<http://blog.neontology.com/posts/2007/01/05/beautiful-c-in-textmate>
and here's one on adding uncrustify to Xcode's scripts menu
<http://hackertoys.com/2008/09/18/adding-a-code-beautifier-script-to-xcode/ >


Alternatively, is there another utility that'll do the trick? (AFAIK, indent doesn't do Objective-C well at all.)

----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: C++ STL question
  • Next by Date: Re: Disk thrashing when opening a project
  • Previous by thread: Re: MallocDebug and GDB with 10.5.5
  • Next by thread: Re: Objective-C Beautifier?
  • Index(es):
    • Date
    • Thread