• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
trouble keeping NSTableView sorted
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: trouble keeping NSTableView sorted
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: how to instantiate MyDocument with file from open panel?
  • Next by Date: Re: Notification for mouse-up on NSStepper
  • Previous by thread: Re: Imaginary File Path
  • Next by thread: Re: trouble keeping NSTableView sorted
  • Index(es):
    • Date
    • Thread