lib/cocoa/sugarcube-nscoder/nscoder.rb in sugarcube-3.3.6 vs lib/cocoa/sugarcube-nscoder/nscoder.rb in sugarcube-3.3.7
- old
+ new
@@ -28,22 +28,10 @@
def int(key)
self.decodeIntegerForKey(key.to_s)
end
- def point(key)
- CGPointFromString(self.decodeObjectForKey(key.to_s))
- end
-
- def rect(key)
- CGRectFromString(self.decodeObjectForKey(key.to_s))
- end
-
- def size(key)
- CGSizeFromString(self.decodeObjectForKey(key.to_s))
- end
-
def set(key, toBool: value)
self.encodeBool(value, forKey: key.to_s)
self
end
@@ -57,24 +45,9 @@
self
end
def set(key, toInt: value)
self.encodeInteger(value, forKey: key.to_s)
- self
- end
-
- def set(key, toPoint: value)
- self.encodeObject(NSStringFromCGPoint(value), forKey: key.to_s)
- self
- end
-
- def set(key, toRect: value)
- self.encodeObject(NSStringFromCGRect(value), forKey: key.to_s)
- self
- end
-
- def set(key, toSize: value)
- self.encodeObject(NSStringFromCGSize(value), forKey: key.to_s)
self
end
end