• Stars
    star
    136
  • Rank 261,400 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

☀️ Create @property with shortcut

ATProperty Build Status

What is this?

This is a convenient and fast approach to create property. You do not need to type @property and nonatomic when you declare a property.

You just needs to type @t like this.

Demo

How to install?

The best way to install this is use Alcatraz. Install Alcatraz followed by the instruction, restart your Xcode. You can find ATProperty in the list. Just click the install button.

Manager

You can also clone the repo and build the target. And the plug-in will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. Relaunch Xcode, and you can use this to create property.

Usage

This plug-in is extremely easy to use.

Common

typein result
@t @property (nonatomic, strong)
@w @property (nonatomic, weak)
@y @property (nonatomic, copy)
@a @property (nonatomic, assign)

Readonly

typein result
@rt @property (nonatomic, strong, readonly)
@rw @property (nonatomic, weak, readonly)
@ry @property (nonatomic, copy, readonly)
@ra @property (nonatomic, assign, readonly)

Readwrite

typein result
@xt @property (nonatomic, strong, readwrite)
@xw @property (nonatomic, weak, readwrite)
@xy @property (nonatomic, copy, readwrite)
@xa @property (nonatomic, assign, readwrite)

Outlet

typein result
@iw @property IBOutlet (nonatomic, weak)

Customize

You can customize the ATProperty plugin in menu:

Edit => ATProperty

ATProperty Setting

You can disabled it by clicking the checkbox ahead Enabled label. Changing default atomicity to atomic or modifier symbol order are also allowed.


Contribute

Feel free to open an issue or pull request, if you need help or there is a bug.

Contact

License

ATProperty is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

analyze

Draven's Blog
Objective-C
8,089
star
2

DKNightVersion

Manage Colors, Integrate Night/Multiple Themes. (Unmaintained)
Objective-C
3,556
star
3

DKChainableAnimationKit

A DSL to make animation easy on iOS with Swift.
Swift
1,892
star
4

NightNight

Elegant way to integrate night mode to swift projects
Swift
776
star
5

Typeset

Deal with AttributedString efficiently
Objective-C
450
star
6

RbSwift

Extensions for Swift with hundreds of handy methods.
Swift
320
star
7

go-internal

《Go 语言设计与实现》示例代码
Go
263
star
8

Ouroboros

🐍 ObjectiveC library for magical scroll interactions.
Objective-C
149
star
9

blog-comments

面向信仰编程
140
star
10

proxier

A better approach to expose application in Kubernetes.
Go
109
star
11

linux-archive

Linux archive for studying the process scheduler. 调度系统设计精要 http://draveness.me/system-design-scheduler
C
87
star
12

JSONCop

A better way to deal with JSON parsing in Swift.
Ruby
30
star
13

Mineral

A library used to separate concerns from the original UIKit framework.
Swift
29
star
14

ChainableKit

Chainable UIKit in Objective-C
Objective-C
27
star
15

oceanbook

A Modern Matching Engine without documentation YET [alpha]
Go
25
star
16

Crotalus

Elegant approach to create AttributedString in swift
Swift
19
star
17

SpaceShuttle

🚀 A library manages Inter-View value passing
Objective-C
13
star
18

OKObserver

A lightweight wrapper for KVO, bind view and model easily
Objective-C
12
star
19

go-utils

Go
11
star
20

draveness

10
star
21

git-ignore

Rust
3
star
22

tmpwatch-controller

Dockerfile
2
star
23

gitbook-plugin-gitalk

JavaScript
2
star
24

Daytabase

An key/value store database built atop sqlite
Swift
1
star