• 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
Re: Sorting on a table view of a managed object - debugger throws exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting on a table view of a managed object - debugger throws exception


  • Subject: Re: Sorting on a table view of a managed object - debugger throws exception
  • From: Steve Cronin <email@hidden>
  • Date: Thu, 02 Jul 2009 11:41:09 -0500

Quincy;

Hey thanks for some useful data!

BUT it is not what is happening in this case.
I have a base class MyManagedObject that all entities are derived from.
MyManagedObject has the - setNilValueForKey: method defined.
I set a breakpoint there and a log message as well. Neither are ever called.


I have an array controller whose sort descriptors are bound in IB.
This appears to work because the initial display of the table is ordered accordingly.
There is no sort key nor selector specified in IB for the table column.
The table column value is bound in IB to the array controller.
Below is the full trace when I click on the table column header...


Thanks for your time!
Steve


#0 0x93b63e17 in objc_exception_throw
#1 0x9577bbd1 in -[NSException raise]
#2 0x91b0abb0 in _NSSetValueAndNotifyForUndefinedKey
#3 0x919f98c7 in _NSSetUsingKeyValueSetter
#4 0x919f935e in -[NSObject(NSKeyValueCoding) setValue:forKey:]
#5 0x91a7df81 in -[NSObject(NSKeyValueCoding) setValue:forKeyPath:]
#6 0x9453332d in -[NSBinder _setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error :]
#7 0x945330de in -[NSBinder setValue:forBinding:error:]
#8 0x9455c8e6 in -[NSControllerConfigurationBinder controller:didChangeToSortDescriptors:]
#9 0x9455c7ff in -[_NSBindingAdaptor controller:didChangeToSortDescriptors:]
#10 0x94543aa5 in -[NSArrayController setSortDescriptors:]
#11 0x919f935e in -[NSObject(NSKeyValueCoding) setValue:forKey:]
#12 0x91a7df81 in -[NSObject(NSKeyValueCoding) setValue:forKeyPath:]
#13 0x9453332d in -[NSBinder _setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error :]
#14 0x945330de in -[NSBinder setValue:forBinding:error:]
#15 0x94544670 in -[NSTableBinder tableView:didChangeToSortDescriptors:]
#16 0x945445c8 in -[_NSBindingAdaptor tableView:didChangeToSortDescriptors:]
#17 0x944a0804 in -[NSTableView setSortDescriptors:]
#18 0x9481a561 in -[NSTableView _changeSortDescriptorsForClickOnColumn:]
#19 0x9455332a in -[NSTableHeaderView _trackAndModifySelectionWithEvent:onColumn:stopOnReorderGesture:]
#20 0x94552b47 in -[NSTableHeaderView mouseDown:]
#21 0x94365133 in -[NSWindow sendEvent:]
#22 0x94331cd9 in -[NSApplication sendEvent:]
#23 0x9428f62f in -[NSApplication run]
#24 0x9425c834 in NSApplicationMain



_______________________________________________

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: Sorting on a table view of a managed object - debugger throws exception
      • From: Quincey Morris <email@hidden>
References: 
 >Sorting on a table view of a managed object - debugger throws exception (From: Steve Cronin <email@hidden>)

  • Prev by Date: Re: NSTableView bug?
  • Next by Date: Re: User interface validation doesn't work, right?
  • Previous by thread: Re: Sorting on a table view of a managed object - debugger throws exception
  • Next by thread: Re: Sorting on a table view of a managed object - debugger throws exception
  • Index(es):
    • Date
    • Thread