From: Allison N. <dem...@ma...> - 2008-05-30 07:13:17
|
OK, I've narrowed down the problem - here's the deal. When the NSOutlineView calls outlineView_child_ofItem, the datasource must return an object that has inherited from NSObject. Apparently the object is not treated as an opaque pointer inside the NSOutlineView. However, if you use YAML to serialise an object that inherits from NSObject, when you reload the object, the NSObject part is not correctly initialised. Conclusion, you can not use objects that are saved using YAML in an NSOutlineView. Phew! That's nasty! The Ruby parts of the reloaded object work just fine, it's only when you try to do something Cocoa-ish with it that the problems start. Thanks to everyone that helped me work through this. Is this sort of problem already documented somewhere? If not, maybe I could write up a quick doc describing the problem, but where should I put it so that others can find it? Alli |