Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interface Builder's User Defined Runtime Attributes not accepting floats?

I created an NSView subclass that has a float property and I'd like to set it in Interface Builder. In the User Defined Runtime Attributes section the only suitable Type is Number. But if I want to enter a decimal number (either using . or , as delimiter) it just rounds to the nearest integer. Is this a bug or on purpose? How can I define a float instead of an Integer?

like image 591
DrummerB Avatar asked May 15 '12 19:05

DrummerB


1 Answers

Use a string type and enter your value like this

0.7
like image 152
William Entriken Avatar answered Nov 14 '22 02:11

William Entriken