Added: 4 months ago
From: AppleProgramming
Views: 1,738
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (9)

Sign In or Sign Up now to post a comment!
  • Is it possible to convert a standard cocoa application to a document-based application?

  • @burieddreamer There is no easy convert button or anything like that. The easiest way is to just create a new project with doc-based app enabled and then copy the files you need over to the new project.

  • i am trying to create a save file for stuff that i draw example simple lines and arrows thus i save all my points in the acoder etc but the thing is that it cant work. Once i save and load it came up with a blank page but from the log i can see the points that i have save in array(after loading) but drawrect is not drawing them please advice

  • Hi, great tutorial set, thank you for the effort and congratulations on all the subjects. I have just one question -- when decoding Assignment in initFromCoder:, shouldn't we use:

    self.name = [aDecoder decodeObjectForKey...

    self.grade = [aDecoder decodeIntForKey....

    Actually, I tried your code (using members instead of properties) in Xcode 3.2 and it does not load the file. Does that mean that KVO management got improved so that it doesn't require properties anymore?

  • @tymarats This isn't KVO though, this is just unpacking data from an archive basically. If you wanted to talk more about this feel free to send me a message though. It should work either way.

  • @AppleProgramming Sorry, my mind was on KVO of the controller, not the entity -- I should have said binding. The problem (which disappears when I use properties) as I see it is that changing the member does not invoke controller update, which in turn will not cause table view to update its cells. Or am I wrong?

  • @tymarats When you are pulling data from an archive though it shouldn't matter that you use properties because it is the first time you initialize the data, the data comes into existence because of the archive (the saved file). If you want me to take a look you can always send it to me.

  • Great information. Thank you! :)

  • Hi there,

    great tutorial, thanks again.

    I really would like to learn something about NSView, I hope to see something about it from you in the future.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more