trouble keeping NSTableView sorted
trouble keeping NSTableView sorted
- Subject: trouble keeping NSTableView sorted
- From: Gonzalo Castro <email@hidden>
- Date: Fri, 7 Dec 2007 09:48:09 -0500
Hello,
To keep a NSTableView contents sorted I believe I need to bind the
table's sortDescriptors to the array controller the table is bound
to. If so, I am not doing it right because I get the following errors
on startup:
*** -[NSCFString key]: selector not recognized [self = 0x327b60]
*** NSRunLoop ignoring exception '*** -[NSCFString key]: selector not
recognized [self = 0x327b60]' that raised during posting of delayed
perform with target 381920 and selector 'invokeWithTarget:'
The table's sortDescriptor binding is set to:
Bind to: MyController
Controller Key: arrangedObjects
Model Key Path: name
"name" is the key to the NSString value of the objects MyController
handles.
Thank you!
Gonzalo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden