title: How do I receive the current value of a slider in code?
body: <p>I am (attempting) developing my first application in Xcode using cocoa framework.</p>
  
  <p>I have a slider which min value is 10 and max is 50. This is to select max search results.</p>
  
  <p>I have linked a label on my user interface to display the value of the slider and when it is moved, it updates the label on the user interface.<br>
  However, I am trying to join around 4 strings to create my final URL one of them is the value of said label.</p>
  
  <p>I am trying to read the value of the label on the interface for use in creating the finished URL</p>
  
  <pre><code>NSString *startofURL = @"http://starturl.com/?q=";  
  NSString *searchTerm = whatToSearch;  
  NSString *middleofURL = "&amp;max-results=";  
  NSString *resultsStr = labelMaxResults.stringValue;    //Problem here ??  
  </code></pre>
  
  <p>I have 2 questions; firstly, How do I go about retrieving the value of my slider via code instead of trying to get it from the linked label, as I think this is my problem.</p>
  
  <p>secondly, I have read up on joining and appending strings, however I am a little confused on which is the best method to use in order to join up the 4 strings into one long URL.</p>