Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed with nib2cib: CPBox title position 'none' was converted to 'on …

…top'.
  • Loading branch information...
commit 87cc62d1d8126c054df948e3699456152ce302b9 1 parent a16388b
@aljungberg aljungberg authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Tools/nib2cib/NSBox.j
View
4 Tools/nib2cib/NSBox.j
@@ -42,7 +42,9 @@
_contentMargin = [aCoder decodeSizeForKey:@"NSOffsets"];
_title = [[aCoder decodeObjectForKey:@"NSTitleCell"] objectValue] || @"";
- _titlePosition = [aCoder decodeObjectForKey:@"NSTitlePosition"] || CPAtTop;
+ _titlePosition = [aCoder decodeObjectForKey:@"NSTitlePosition"];
+ if (_titlePosition === undefined)
+ _titlePosition = CPAtTop;
}
return self;
Please sign in to comment.
Something went wrong with that request. Please try again.