cocoa - NSOutlineView and Object Persistence Odd Behavior -


I'm having a hard time with this getting me a very strange behavior when it's a visual-based NSOutlineView Comes to the purpose of perseverance. I currently have an object in which there is an array of object 1 that contains an array of object 3 in which there is an array of object 3, etc. ... Each of each class (object) has an Excel: method and one Excel Object: Method. I've revised them repeatedly, they work fine.

Now when I expand an item, this default plugin is saved and I have checked it, the number of saved items is correct.

But what happens when I open my document again; Sometimes all the lines are stretched exactly like I left them, sometimes there is no extension of the rows and sometimes the NSOUTline view extends some lines, but others do not.

Note that I am not using NSTreeController I am using NSOutlineView DataSource and Representative The following methods are implemented in this way. Also the AutoShare Name is set for Outline View.

- (ID) View Profile: (NSOtlineview *) Outline View Constant Object Future item: (id) Item {Returns [NSKAadArchur archivedDataAuth Item:]; } - (ID) outline view: (NSOutlineView *) Outline Visual Object Contrast object: (ID) Object {Returns [NSKEdEzeriRisk Unobtrusive Object WidgetDate Object]; }

Actually, sometimes it works, sometimes it does half the work and sometimes it does not happen at all, it is very random.

Strange The thing is that I have kept the NSLog and each item is getting a match ... but the outline view is not expanding it.

I got it to work, so for the object that I am ending with, I have Searching through each array and returning the matching object (not the constant object but the object that is already part of my data). In other words

  - (ID) see the outline: (NSOtlineview *) View Outline Object Commodity Object (ID) Object {ID Continuous Object = [NSKAdAnkwinWorld Object Disclaimer: Object]; For (Class A * in Data Array) {If ([an athlete: continuous object]) {return; // Instead of returning the constant object}}}  

This was the trick I searched long and broad for this and I hope someone will find it useful.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -