I came across this link http://macscripter.net/viewtopic.php?id=39651 while researching how to write an array of custom objects to a file. I have a custom class that I set up, based on Shane’s book, chapter 7. I’d like to write this an array of these objects to disk. I have already written my own init() as I need to set up a mutable array for one of the classes properties. Three of the properties have custom setter handlers.
What would be the proper sequence for reading/writing an array of objects?
init()
initWithCoder_(coder)
setters
initWithCoder_(coder)
init()
setters
combine init() and initWithCoder_(coder) → I wouldn’t think so as init() is being called every time a new object is created
Thanks in advance,
Brad
Model: Macbook (mid 2010)
AppleScript: xCode 3.2.6
Browser: Safari 7536.25
Operating System: Mac OS X (10.7)