title: iPhone Core Data crash with ARC
body: <p>This is my first time trying to use both ARC and Core Data. I can't seem to figure out why my code is crashing. </p>
  
  <p>in the .h I have:</p>
  
  <pre><code>@interface Foo : NSObject {
  }
  @property (nonatomic,strong) NSString *name;
  @property (nonatomic,strong) NSString *email;
  @property (nonatomic) BOOL myBool;
  @property (nonatomic) float myFloat;
  </code></pre>
  
  <p>in the .m</p>
  
  <pre><code>@implementation User
  
  @dynamic name;
  @dynamic email;
  @dynamic myBool;
  @dynamic myFloat;
  </code></pre>
  
  <p><code>User *user = (User *)[NSEntityDescription insertNewObjectForEntityForName:@"User" inManagedObjectContext:[appDelegate managedObjectContext]];</code></p>
  
  <pre><code>[user setName:[[[dictionary objectForKey:@"user"] objectForKey:@"user"]objectForKey:@"name"]];
  [user setEmail:[[[dictionary objectForKey:@"user"] objectForKey:@"user"]objectForKey:@"email"]];
  [user setAuthorisation_token:[[[dictionary objectForKey:@"user"] objectForKey:@"user"]objectForKey:@"authentication_token"]];
  [user setMyFloat:5]; &lt;------ crash when set to anything other than 0 (eg,setting to FALSE will crash it).
  [user setMyBool:FALSE]; &lt;---- crash when set this to anything other than 0.
  </code></pre>
  
  <p>Basically whenever I try to use a type other than a string I am getting EXEC crash on that particular line. When I use strings for everything it is fine. In my.xcdatamodeld file I have myFloat set to FLOAT and myBool set to BOOLEAN</p>
  
  <pre><code>kill
  error while killing target (killing anyway): warning: error on line 2184 of "/SourceCache/gdb/gdb-1708/src/gdb/macosx/macosx-nat-inferior.c" in function "void macosx_kill_inferior_safe()": (os/kern) failure (0x5x)
  quit
  Program ended with exit code: 0
  </code></pre>