title: Sharing Property information between classes in Obj C
body: <p>I've been trying to share information from one of my classes to another one (trying out something for Spritebuilder) and it's just. Not. Working. </p>
  
  <p>I want to change the text of the label in the second class to a string I define in the first. Here is my code. </p>
  
  <p>MainScene.h</p>
  
  <pre><code>@interface MainScene : CCNode
  @property CCLabelTTF *lblChange;
  
  -(void) _button;
  
  @end
  </code></pre>
  
  <p>MainScene.m</p>
  
  <pre><code>#import "MainScene.h"
  #import "StoryScene.h"
  @implementation MainScene
  
  -(void)_button {
      StartScene *startHold = [[StartScene alloc] init];
      [startHold.lblTwo setString:@"Hello World!"];
      NSLog(@"%@, this is the StoryScene", startHold);
      NSLog(@"%@, this is the Main Scene", @"Yessss");
      NSString *filler = [startHold.lblTwo string];
      NSLog(@"%@",filler);
      CCScene *storyScene = [CCBReader loadAsScene:(@"StartScene")];
      [[CCDirector sharedDirector] replaceScene: storyScene];
  }
  @end
  </code></pre>
  
  <p>StoryScene.h</p>
  
  <pre><code>#import "CCNode.h"
  
  @interface StartScene : CCNode
  @property CCLabelTTF *lblTwo;
  
  @end
  </code></pre>
  
  <p>StoryScene.m</p>
  
  <pre><code>#import "StoryScene.h"
  @implementation StoryScene
  @end
  </code></pre>
  
  <p>I've tried making StoryScene a property in the MainScene class, synthesizing pretty much everything, moving things around - but I cannot get that dogging <code>lblTwo</code> to log as anything, which prevents the Label text from changing (I think).
  Here is the relevant output I get in my log. </p>
  
  <pre><code>TheCaveOfMan[58721:1593076] &lt;StartScene = 0x7fc2cfb31e40 | Name = (null)&gt;, this is the StoryScene
  2015-06-18 15:52:04.712 TheCaveOfMan[58721:1593076] Yessss, this is the Main Scene
  2015-06-18 15:52:04.712 TheCaveOfMan[58721:1593076] &lt;StartScene = 0x7fc2cfb31e40 | Name = (null)&gt;, this is the label
  2015-06-18 15:52:04.713 TheCaveOfMan[58721:1593076] (null)
  2015-06-18 15:52:04.714 TheCaveOfMan[58721:1593076] CCBReader: Couldn't find member variable: lblTwo
  2015-06-18 15:52:04.725 TheCaveOfMan[58721:1593076] cocos2d: surface size: 640x1136
  </code></pre>
  
  <p>I don't know why it can't find the lblTwo variable, and I don't know how to change the StoryScene's logging name to something that isn't <code>(null)</code>, or how to give the <code>lblTwo string</code> something to hold. Help?</p>