From: helge Date: Mon, 22 Aug 2005 11:11:02 +0000 (+0000) Subject: fixups X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0160be68e344e405a19c3ba3ffb52579e54e5009;p=sope fixups git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1059 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-appserver/samples/CoreDataBlog/Defaults.plist b/sope-appserver/samples/CoreDataBlog/Defaults.plist new file mode 100644 index 00000000..f94a3d95 --- /dev/null +++ b/sope-appserver/samples/CoreDataBlog/Defaults.plist @@ -0,0 +1,4 @@ +{ + WOComponentLoadWOOFiles = YES; + WOKeyPathAssociationClass = WOKeyPathAssociationSystemKVC; +} diff --git a/sope-appserver/samples/CoreDataBlog/GNUmakefile b/sope-appserver/samples/CoreDataBlog/GNUmakefile index 70a9d229..117f5495 100644 --- a/sope-appserver/samples/CoreDataBlog/GNUmakefile +++ b/sope-appserver/samples/CoreDataBlog/GNUmakefile @@ -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 diff --git a/sope-appserver/samples/CoreDataBlog/Main.m b/sope-appserver/samples/CoreDataBlog/Main.m index 6e741dda..690fc99d 100644 --- a/sope-appserver/samples/CoreDataBlog/Main.m +++ b/sope-appserver/samples/CoreDataBlog/Main.m @@ -71,6 +71,9 @@ - (id)rollback { [[[self session] defaultManagedObjectContext] rollback]; + + // TODO: this does not refresh the datasources! + return nil /* stay on page */; } diff --git a/sope-appserver/samples/CoreDataBlog/Main.wo/Main.wod b/sope-appserver/samples/CoreDataBlog/Main.wo/Main.wod index 0986ba40..bbcdd7b9 100644 --- a/sope-appserver/samples/CoreDataBlog/Main.wo/Main.wod +++ b/sope-appserver/samples/CoreDataBlog/Main.wo/Main.wod @@ -32,7 +32,7 @@ PostSelectLink: WOHyperlink { } PostTitle: WOString { - value = post.creationDate; // title; + value = post.title; valueWhenEmpty = "[no title]"; } diff --git a/sope-appserver/samples/CoreDataBlog/README b/sope-appserver/samples/CoreDataBlog/README index 8d3ebea8..4c4fbf93 100644 --- a/sope-appserver/samples/CoreDataBlog/README +++ b/sope-appserver/samples/CoreDataBlog/README @@ -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