• Stars
    star
    691
  • Rank 65,435 (Top 2 %)
  • Language
    Objective-C
  • Created over 9 years ago
  • Updated over 8 years ago

Reviews

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

Repository Details

A helper tool and an Xcode plugin for creating beautiful CAMediaTimingFunction curve

CATweaker Build Status Flattr this

Overview

A helper tool for creating beautiful CAMediaTimingFunction curve.

alt Window

CATweaker comes with an Xcode plugin:

CATweakerSense for Xcode

Overview

CATweakerSense is an Xcode plugin that makes working with CAMediaTimingFunction more visual.

You might use ColorSense before. It let you pick up a color right from Xcode caret.

CATweakerSense is like ColorSense, but it lets you pick a CAMediaTimingFunction curve. When you put the caret on one of your CAMediaTimingFunction, it automatically shows the actual time curve as an overlay, and you can even adjust it on-the-fly with the curve adjuster.

The plugin also adds some items to the Edit menu to enable and to disable CATweakerSense temporarily. These menu items have no keyboard shortcuts by default, but you can set them via the system's keyboard preferences (Xcode's own preferences won't show them).

alt Xcode Plugin

alt Xcode Plugin

Installation

Install via Alcatraz.

Or

Simply build the Xcode project and restart Xcode. The plugin will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. To uninstall, just remove the plugin from there (and restart Xcode).

If you get a "Permission Denied" error while building, please see this issue.

This is tested on:

  • OS X 10.9.2 with Xcode 6.2
  • OS X 10.10.3 with Xcode 6.2
  • OS X 10.11 with Xcode 7.0.1

Limitations

  • It only works for constant point value, something like [CAMediaTimingFunction functionWithControlPoints: abc/def : 0.1 : 0.15 : 0.9]; won't work.
  • It only works for Objective-C code. Swift support is in todo list.

Next move

I am planing to bring keyFrame animation into this plugin. So one can create more complex animation like "spring", "decay", "along path" through the popover adjuster. If you have some great ideas, I am more than happy to hear from you. Swift language support.

Credits

This work is derived from the awesome ColorSense plugin of Ole Zorn(@olemoritz). Thanks Ole!

Author

Xu Lian

I'm a Mac and iOS developer, the founder of Beyondcow, follow me on Twitter or Github.

License

CATweaker & CATweakerSense is published under MIT License

Copyright (c) 2015 Xu Lian (@lianxu)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

NeewerLite

NeewerLite is an un-official Neewer LED light control app for macOS.
Swift
108
star
2

LXFoundation

Some of Cocoa Fundation Class
Objective-C
24
star
3

URLTextView

NSTextView detect URL link
Objective-C
21
star
4

BlurView

OSX real time BlurView
Objective-C
19
star
5

BCPainter

Cocoa开发简单绘画板实例
Objective-C
17
star
6

iMoo

使用OutlineView建立iTunes左侧列表风格的实例
Objective-C
15
star
7

ColorParserService

ColorParserService is a Mac OS service which show selected color string as Color in system color panel.
Objective-C
12
star
8

CAAnimationForPath

展示CALayer配合CoreAnimation沿任意路线运动。该例中,红色小球沿螺旋路线运动。
Objective-C
11
star
9

LXScrubbingBar

可拖动的播放进度条,带荧光效果。
Objective-C
11
star
10

XPCImageFetcher

Objective-C
9
star
11

LXVolumeController

Under OSX programmatically control the master volume as well as register the volume change notification.
Objective-C
8
star
12

TableView-Example-1

一个不使用IB创建NSTableView的例子。
Objective-C
8
star
13

TableViewHeaderMenu

NSTableView表头菜单的例子。
Objective-C
7
star
14

WebViewScroller

该实例教你如何改变WebView滚动条外观
Objective-C
6
star
15

CURLgui

一个GUI下载器,wrap around curl命令行程序。
Objective-C
6
star
16

WindowTitleMenu

为窗口标题栏添加popup按钮的例子。
Objective-C
6
star
17

GrowlStyleWindow

实现带有自会阴影的消息窗口
Objective-C
6
star
18

SwitchButton

create a realistic black switch button
Objective-C
5
star
19

daemon

展示macos下如何使用fork,创建一个守护进程。
Objective-C
5
star
20

UniversalDetector

UniversalDetector for macOS
HTML
5
star
21

gifdemo

Shell
4
star
22

createMultipleWindow

Cocoa里建立多窗口程序。使用几种不同的方法建立,包括从xib里建立和直接用代码建立新窗口。
Objective-C
4
star
23

LoadTTFFont

展示在Cocoa环境下,通过代码加载bundle内自带字体的例子。
Objective-C
4
star
24

ATSUI-Vertical

使用ATSUI绘制垂直文字的例子。
Objective-C
3
star
25

VerticalButtonWindow

实现垂直排列NSWindow标准按钮的例子。
Objective-C
3
star
26

QLDemo

QuickLook Demo
Objective-C
2
star
27

noiseBackground

使用CoreGraphic绘制带噪点的背景图片。
2
star
28

CoolBox

一个代码绘制的box。
Objective-C
2
star
29

NOJ

NUC Online Judge System - http://nucoj.com
PHP
2
star
30

FullScreenApp

创建一个Mac OS下的全屏幕程序。
Objective-C
2
star
31

AlphaChannelChecking

NSImage Alpha Channel Checking
Objective-C
2
star
32

buttonMadness

NSTableView里面一列互斥的checkbox按钮。
Objective-C
2
star
33

SyncScrollView

2个ScrollView同步滚动的例子。
Objective-C
2
star
34

PHPMarkdown

The famous michelf php-markdown's derivation
PHP
1
star
35

CAGridView

a general iPhoto-liked grid view controller build on top of CoreAnimation
Objective-C
1
star
36

QRCodeDemo

QRCodeDemo
C++
1
star
37

www.jjxsw.com-crawler

久久小说爬虫 www.jjxsw.com
Python
1
star
38

WebCrawler

Objective-C
1
star
39

ZeroIB

不使用IB创建Cocoa程序实例ZeroIB,顾名思义包括主菜单全部由代码生成。
Objective-C
1
star
40

LXiCloudUserDefaultSync

Sync NSUserDefaults to iCloud automatically
Objective-C
1
star
41

DailySwift

This is my Swift learning project.
Swift
1
star