@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.
Is it possible to convert a standard cocoa application to a document-based application?
burieddreamer 3 days ago in playlist Cocoa Tutorials
@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.
AppleProgramming 2 days ago
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
howwaisheng 3 days ago in playlist Cocoa Tutorials
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 1 month ago
@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 1 month ago
@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 1 month ago
@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.
AppleProgramming 1 month ago
Great information. Thank you! :)
onetamer 3 months ago
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.
KanedaTatsaki 4 months ago