menu-motion 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/menu-motion/menu_item.rb +9 -0
- data/lib/menu-motion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf79f82dbae26e8b13bc45d3305f1abd70afeb1e
|
4
|
+
data.tar.gz: 0d1a832b9b001c82ff92859bd8a9c9706e00f910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c45d9a9108ad6b827639aaf3f72cb93d966bdc273b7ccccf8234895667cc6dcfac1f90c7b35cac0b161456cac75f39151cb7caae2d70545625f96368841a8826
|
7
|
+
data.tar.gz: 1249524dc22ce93fdff051cf07351c2f94d8de79ca229d85f2de04327f4b4264ce41c584b2da100d2649f1fed815e412063f34aad8407a614c180ecdebb7002c
|
@@ -8,6 +8,14 @@ module MenuMotion
|
|
8
8
|
alias_method :object, :representedObject
|
9
9
|
alias_method :object=, :setRepresentedObject
|
10
10
|
|
11
|
+
def checked
|
12
|
+
self.state == NSOnState
|
13
|
+
end
|
14
|
+
|
15
|
+
def checked=(value)
|
16
|
+
self.state = (value ? NSOnState : NSOffState)
|
17
|
+
end
|
18
|
+
|
11
19
|
def initialize(params = {})
|
12
20
|
super()
|
13
21
|
update(params)
|
@@ -25,6 +33,7 @@ module MenuMotion
|
|
25
33
|
end
|
26
34
|
|
27
35
|
def update(params)
|
36
|
+
self.checked = params[:checked] if params.has_key?(:checked)
|
28
37
|
self.item_action = params[:action] if params.has_key?(:action)
|
29
38
|
self.item_target = params[:target] if params.has_key?(:target)
|
30
39
|
self.object = params[:object] if params.has_key?(:object)
|
data/lib/menu-motion/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: menu-motion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pattison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|