]> err.no Git - sope/commitdiff
fixups
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 22 Aug 2005 11:11:02 +0000 (11:11 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 22 Aug 2005 11:11:02 +0000 (11:11 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1059 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/samples/CoreDataBlog/Defaults.plist [new file with mode: 0644]
sope-appserver/samples/CoreDataBlog/GNUmakefile
sope-appserver/samples/CoreDataBlog/Main.m
sope-appserver/samples/CoreDataBlog/Main.wo/Main.wod
sope-appserver/samples/CoreDataBlog/README

diff --git a/sope-appserver/samples/CoreDataBlog/Defaults.plist b/sope-appserver/samples/CoreDataBlog/Defaults.plist
new file mode 100644 (file)
index 0000000..f94a3d9
--- /dev/null
@@ -0,0 +1,4 @@
+{
+  WOComponentLoadWOOFiles   = YES;
+  WOKeyPathAssociationClass = WOKeyPathAssociationSystemKVC;
+}
index 70a9d229de3b3749e9afcdebe1a1209497de86f8..117f54958d1b8b4082e464b39db42d1098b0f316 100644 (file)
@@ -18,6 +18,9 @@ CoreDataBlog_COMPONENTS += Main.wo
 CoreDataBlog_COREDATA_MODELS += \
        BlogDemo_DataModel.xcdatamodel
 
+CoreDataBlog_RESOURCE_FILES += Defaults.plist
+
+
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/woapp.make
 -include GNUmakefile.postamble
index 6e741ddafe74964c21cba479e41878fb5a504d84..690fc99df5c47886cb4190815928f8d64135d22f 100644 (file)
@@ -71,6 +71,9 @@
 
 - (id)rollback {
   [[[self session] defaultManagedObjectContext] rollback];
+  
+  // TODO: this does not refresh the datasources!
+
   return nil /* stay on page */;
 }
 
index 0986ba40734c70d1752ae708ebb13536ea64ea7a..bbcdd7b94cd15cae1fabcb7159df9a2c9c7cc214 100644 (file)
@@ -32,7 +32,7 @@ PostSelectLink: WOHyperlink {
 }
 
 PostTitle: WOString {
-  value          = post.creationDate; // title;
+  value          = post.title;
   valueWhenEmpty = "[no title]";
 }
 
index 8d3ebea843041fe976e0e8cf2120e619fc953e8e..4c4fbf93c83e33f5a2bd515a8c97d35f727148ad 100644 (file)
@@ -5,3 +5,9 @@ A sample SOPE application which access some CoreData storage.
 
 Works on the same data like:
   http://www.cocoadevcentral.com/articles/000085.php
+
+
+Required defaults:
+  defaults write CoreDataBlog WOComponentLoadWOOFiles YES
+  defaults write CoreDataBlog \
+    WOKeyPathAssociationClass WOKeyPathAssociationSystemKVC
\ No newline at end of file