|Jun 25, 2007, 06:19 AM||#1|
Adding saving to a Document based app
I was hoping someone here could help me. I'm quite new to both Obj-c and Cocoa and have been trying to teach myself by building a few trivial apps. The latest is a searchable dictionary app, which allows users to add and remove entries. (I want to use it for conlangs)
Anyway the app is a Cocoa document based app and has three classes.
Now I thought that in order to add saving to the app I had to implement a few methods in the MyDocument class and have custom classes to archive themselves.
So in MyDocument I added this:
In my Word class I've added the following:
|Jun 25, 2007, 06:50 AM||#3|
|Jun 25, 2007, 02:21 PM||#4|
I deserve a great big thwak over the head. I forgot to set the content array binding of my array controller. So when my document attempted to archive my words array, it was empty as the array controller hadn't been passing the info back to it.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|basic core data saving in a document-based app||Yashman!||Mac Programming||0||Apr 10, 2014 07:58 AM|
|Core Data app w/out Document based app||cpuin||Mac Programming||2||Jun 17, 2013 02:14 PM|
|Any way to close pages document without saving?||jbachandouris||Mac Applications and Mac App Store||1||Dec 13, 2012 12:21 PM|
All times are GMT -5. The time now is 04:08 AM.