Xcode 代码自动化生成工具:Accessorizer

   Accessorizer是一款Xcode自动化代码生成的工具,可以为你自动生成 property,Keyed Archiving 等定型的代码,不但可以节省开发时间,还能够规范代码风格和结构,是一款值得去研究的辅助工具!!!其官网不但有详细的文档还有8部视频教程,虽然都是英文的,还是比较容易上手的。那些视频我搬运到Youku上了,试了几种方法都没能在博客中成功插入视频,只能超链接跳转了,将就下吧!!

官网地址:  http://www.kevincallahan.org/software/accessorizer.html

相关文档:  Accessorizer-QuickStartGuide_2.9.2.pdf
            Accessorizer-ActionPanelGuide.pdf
下载地址:    Accessorizer 2.9.9.1 


视频教程:

1. GENERATE CODE from the Accessorizer interface(点击观看)

    Starting on Page 10 of the QuickStartGuide covers basic setup you see in this 6 minute video.  However, you’ll want to learn to use the new Action Panel and Action menu + Services with Xcode Activation and auto-insert at Xcode’s insertion point as shown in the video: SETTING UP SERVICES below.


2. SETTING UP SERVICES + Action Menu/Panel(点击观看)

    Using Services unleashes the true power of Accessorizer. The begining of the QuickStartGuide jumps right in and shows you how to set up Services + the new Action Panel and Action menu as shown in this 10 minute video.  You can also download the standalone Action Panel Guide. 

3. SETTINGS & CODING STYLES(点击观看)

    While Accessorizer offers best-practices coding conventions, no one shoe fits all.  Most of what you see in the Accessorizer interface addresses the broad range of coding styles and needs of the Cocoa developer.  Once you define your settings, you can generally minimize Accessorizer to the Dock, keeping it out of your way, and work from the single point-of-entry Action Panel Service + Action Menu or Action Panel and generate all the code you need with a couple of key strokes.
For more detailed guidance check out the guides below where you can learn about Configuration Sets, The Defaults Table and the many powerful features available at your fingertips.

4. CREATING A FLESHED OUT .m file(点击观看)

    For V3.0, I think I’ll offer a complete .m file generation from your .h file based on user-defined selection.  Accessorizer already can generate all that code you need.  You can do this now, however, with just a couple of clicks as shown in this 3 minute

5. 64-BIT RUNTIME - what, no ivar declarations?(点击观看)

    With the 64-bit “Modern Runtime” using the LLVM comiler, you do not have to declare your ivars.  Ivars can be added to the class at compile-time. This 3 min. video demonstrates how Accessorizer can generate those properties for you.

6. POWER of the DEFAULTS TABLE(点击观看)

    Accessorizer’s Defaults Table is one of its most powerful features.  It’s where you can define a TYPE and its property specifiers (or explicit accessor style).  It’s also where you can define your custom views so that they’re picked up as IBOutlets and handled accordingly.

7. METHOD STUBS, SELECTORS oh my!(点击观看)

    This 2 minute video covers generating generating Delegate Stubs, Prototype stubs (in both directions, .h->.m, .m->.h, and how to generate selectors.

8. CREATING CONSTANTS  & ENUMS(点击观看)

    This 3 minute video covers generating Constants for Properties with and without the classname.  It also covers generating the switch case code for enums along with options for Bitmask for Enums on 0 and Bitmask for Enums on 1.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值