title: Xcode:(user defined runtime attribute)Range with minus value. Alternative?
body: <p>I made a custom UITextField with an additional user defined runtime attribute validRange, which I can set in the storyboard view.
  I use this property to check in the EndEditing method to validate the new set text.
  I works all fine, till I had to set a valid range from {-100,100}
  As NSRange uses NSUInteger, there are no minus values possible.</p>
  
  <p>What is the best way to still make this happen?
  Would it be acceptable if I use CGSize instead of NSRange?</p>
  
  <p><strong>Updated Content</strong>
  Xcode only gives me the following choice of data types for the user defined runtime attributes:</p>
  
  <p><img src="https://i.stack.imgur.com/BawD9.png" alt="enter image description here"></p>
  
  <p>This means I cannot define a new struct to create a CustomRange with NSInteger.
  As Point,Size are both {NSInteger,NSInteger} data types, I thought about using them. But this would be certainly a misuse, so I am wondering if someone knows a better solution, as misusing Point or Size to get this to work.</p>
  
  <p>As another workaround I could user String, which I manually would split up in a method of the custom UITextField, but then there is no type safety.</p>