Permalink
Browse files

Update machine templates to include fetched properties

Include nzhuk's fetched properties in the default templates

Signed-off-by: Jonathan del Strother <jon.delStrother@audioboo.fm>
  • Loading branch information...
1 parent 03d0050 commit d0f28ab3354af852d3470adccaf392fbd7c6129c @jdelStrother jdelStrother committed Oct 8, 2010
Showing with 7 additions and 0 deletions.
  1. +3 −0 templates/machine.h.motemplate
  2. +4 −0 templates/machine.m.motemplate
@@ -46,6 +46,9 @@
+ (NSArray*)fetch<$FetchRequest.name.initialCapitalString$>:(NSManagedObjectContext*)moc_ <$foreach Binding FetchRequest.bindings do2$><$Binding.name$>:(<$Binding.type$>)<$Binding.name$>_ <$endforeach do2$>error:(NSError**)error_;
<$endif$>
<$endforeach do$>
+<$foreach FetchedProperty noninheritedFetchedProperties do$>
+@property (nonatomic, readonly) NSArray *<$FetchedProperty.name$>;
+<$endforeach do$>
@end
@interface _<$managedObjectClassName$> (CoreDataGeneratedAccessors)
@@ -67,6 +67,10 @@
<$endif$>
<$endforeach do$>
+<$foreach FetchedProperty noninheritedFetchedProperties do$>
+@dynamic <$FetchedProperty.name$>;
+<$endforeach do$>
+
<$foreach FetchRequest prettyFetchRequests do$>
<$if FetchRequest.singleResult$>
+ (id)fetch<$FetchRequest.name.initialCapitalString$>:(NSManagedObjectContext*)moc_ <$foreach Binding FetchRequest.bindings do2$><$Binding.name$>:(<$Binding.type$>)<$Binding.name$>_ <$endforeach do2$>{

0 comments on commit d0f28ab

Please sign in to comment.