Is it just me or is fighting with controller bindings one of the most 
frustrating parts of Cocoa App kit programming?

Its great stuff when the data size is small but once data sets grow so does the 
pain.

The main culprits seem to be NSArrayController + NSTableView and 
NSTreeController + NSOutlineView.

Performance can be a real problem.

This binding look inocuous:

[_treeController bind:NSContentArrayBinding toObject:self 
withKeyPath:@"resultTreeArray" options:nil];  

With an array of several thousand items the performance is initially fine.
But when the content object is updated performance goes through the floor.
The following works and maintains performance:

[_treeController setContent:nil];       
[_treeController setContent:self.resultTreeArray];

Okay, so its a bug, or an issue.
Its just the fact that every app seems to end up binding on the bindiings.
 
I like the view controller bindings but I hate fighting with them.

There is more coding with a data source but performance seems much more 
predictable for larger data sets.

Regards

Jonathan Mitchell

Developer
http://www.mugginsoft.com






_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to