<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -549,6 +549,7 @@ static const NSInteger kDefaultLightSource = 125;
     DECODE_OBJ(@&quot;textAlignment&quot;);
     DECODE_OBJ(@&quot;verticalAlignment&quot;);
     DECODE_OBJ(@&quot;lineBreakMode&quot;);
+    DECODE_OBJ(@&quot;numberOfLines&quot;);
     DECODE_SIZE(@&quot;shadowOffset&quot;);
     END_DECODER();
     return self;
@@ -564,6 +565,7 @@ static const NSInteger kDefaultLightSource = 125;
     ENCODE_OBJ(@&quot;textAlignment&quot;);
     ENCODE_OBJ(@&quot;verticalAlignment&quot;);
     ENCODE_OBJ(@&quot;lineBreakMode&quot;);
+    ENCODE_OBJ(@&quot;numberOfLines&quot;);
     ENCODE_SIZE(@&quot;shadowOffset&quot;);
     END_ENCODER();
 }
@@ -744,6 +746,13 @@ static const NSInteger kDefaultLightSource = 125;
   [super dealloc];
 }
 
+- (void)setNilValueForKey:(NSString *)key {
+  if ([key isEqualToString:@&quot;numberOfLines&quot;])
+    self.numberOfLines = 1;
+  else
+    [super setNilValueForKey:key];
+}
+
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 // TTStyle
 </diff>
      <filename>src/TTStyle.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2cbe29d94d6a9a125063b49d0fea7631ad3ea6be</id>
    </parent>
  </parents>
  <author>
    <name>Keith Lazuka</name>
    <email>klazuka@gmail.com</email>
  </author>
  <url>http://github.com/dbgrandi/three20/commit/a851403c856678be30378245f1d86aa5b6cf4868</url>
  <id>a851403c856678be30378245f1d86aa5b6cf4868</id>
  <committed-date>2009-07-27T08:11:50-07:00</committed-date>
  <authored-date>2009-07-27T08:11:50-07:00</authored-date>
  <message>Updated TTTextStyle to encode/decode its recently-added &quot;numberOfLines&quot; property.</message>
  <tree>6fc263cb9dea85487f87f6b925c9561e0887b8a7</tree>
  <committer>
    <name>Keith Lazuka</name>
    <email>klazuka@gmail.com</email>
  </committer>
</commit>
