Пример #1
0
    public void encodeWithCoder(Object receiver, NSCoder coder) {
      long milliseconds = ((Date) receiver).getTime();
      double seconds = milliseconds / 1000L;

      coder.encodeDouble(seconds);
    }
Пример #2
0
 public void encodeWithCoder(Object receiver, NSCoder coder) {
   _encodeUTF8("d", coder);
   coder.encodeDouble(((Double) receiver).doubleValue());
 }