title: How to Use Objective-C Categories
body: <p>When you implement a category of a class in a file, will all the instances of that class be of the category by default?</p>
  
  <p>I'm new to Objective-C and I'm trying to make my uneditable UITextView non-selectable. I came across this answer using a category:
  <a href="https://stackoverflow.com/a/8013538/1533240">https://stackoverflow.com/a/8013538/1533240</a></p>
  
  <p>Which has the following solution:</p>
  
  <pre><code>@implementation UITextView (DisableCopyPaste)
  
  -(BOOL) canBecomeFirstResponder
  {
      return NO;
  }
  @end
  </code></pre>
  
  <p>I added the snippet to my code, but it doesn't seem to be working in that I can still select the text. My declaration of the <code>UITextView</code> is the usual: </p>
  
  <p><code>titleLabel = [[UITextView alloc]   initWithFrame:frame];</code></p>
  
  <p>I tried changing the declaration to <code>[DisableCopyPaste alloc]</code> but that didn't seem to work.. haha.</p>
  
  <p>Thanks!</p>