title: NSButton change width
body: <p>I have a button with a title and image. The title of the button change dependent on the selected language. So i want that the button has always the width of the title plus image. I thought it was something easy like this:</p>
  
  <pre><code>var size = selectMenuItemButton.attributedTitle.size
  myButton.bounds.size.width = size.width + 10.0
  </code></pre>
  
  <p>But the width of the button stay the same. What i'm doing wrong? </p>
  
  <p>Edit: 
  Also try </p>
  
  <pre><code>myButton.frame.size.width = size.width + 10.0
  </code></pre>
  
  <p>And</p>
  
  <pre><code>myButton.sizeToFit()
  </code></pre>
  
  <p>Didn't work neither</p>
  
  <p>Edit2:
  I have created a clear project with two buttons. If the one button is clicked the title of the another button is changed. The outcome is the same, i want that the width is change too, but i can't achieve that</p>
  
  <pre><code>@IBAction func buttonClicked(sender: AnyObject) {
      println(test.attributedTitle.size.width)
      myButton.title = "blublublublub"
      var size = test.attributedTitle.size
      myButton.frame.size.width = size.width
      println(test.attributedTitle.size.width)
  }
  </code></pre>