title: Xcode 4 Core Data: How to use fetched property created in Data Model editor
body: <p>How do you implement a fetched property in Xcode 4?</p>
  
  <p>Here is an example of two entities, a book and a page:
  <img src="https://i.stack.imgur.com/KPa37.png" alt="enter image description here"></p>
  
  <p>I followed the guidelines here to create a fetched property that references a value from the source entity using the variable $FETCH_SOURCE: <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdRelationships.html" rel="noreferrer">http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdRelationships.html</a></p>
  
  <p>Now, once I have this saved and I generate the source code I get this:</p>
  
  <pre><code>//  Book.h
  
  #import &lt;Foundation/Foundation.h&gt;
  #import &lt;CoreData/CoreData.h&gt;
  
  @class Pages;
  
  @interface Book : NSManagedObject {
  @private
  }
  @property (nonatomic, retain) NSString * title;
  @property (nonatomic, retain) NSNumber * pageCount;
  @property (nonatomic, retain) Pages * pages;
  
  @end
  </code></pre>
  
  <p>And...</p>
  
  <pre><code>//  Book.m
  
  #import "Book.h"
  #import "Pages.h"
  
  
  @implementation Book
  @dynamic title;
  @dynamic pageCount;
  @dynamic pages;
  
  @end
  </code></pre>
  
  <p>Where is the fetched property 'fetchLastPage'? How can I use it in code?</p>