From: Eloy D. <elo...@gm...> - 2008-05-30 07:23:54
|
What kind of objects that inherit from NSObject are you trying to save? Eloy On 30 mei 2008, at 09:13, Allison Newman wrote: > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |