small medium large xlarge

Back to: All Forums  Core Data
Generic-user-small
17 Nov 2011, 13:48
Richard Gravenor (1 post)

Hi.

I’ve got as far as building the data model and GUI, but when I run the app I get this error:

2011-11-17 13:39:09.618 CoreDataTest[6049:707] -[NSCFString count]: unrecognized selector sent to instance 0x102bca700 2011-11-17 13:39:09.619 CoreDataTest[6049:707] -[__NSCFString count]: unrecognized selector sent to instance 0x102bca700 2011-11-17 13:39:09.625 CoreDataTest[6049:707] ( 0 CoreFoundation 0x00007fff8961a286 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff88b2cd5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff896a64ce -[NSObject doesNotRecognizeSelector:] + 190 3 CoreFoundation 0x00007fff89607133 __forwarding + 371 4 CoreFoundation 0x00007fff89606f48 _CF_forwarding_prep_0 + 232 5 AppKit 0x00007fff86dbdad3 -[_NSSelectionBinderPlugin populateObject:withContent:valueKey:objectKey:insertsNullPlaceholder:] + 235 6 AppKit 0x00007fff86c5472c -[NSSelectionBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] + 1444 7 AppKit 0x00007fff86927788 -[NSValueBinder _observeValueForKeyPath:ofObject:context:] + 303 8 AppKit 0x00007fff86c54179 -[NSSelectionBinder observeValueForKeyPath:ofObject:change:context:] + 305 9 Foundation 0x00007fff8423a862 NSKeyValueNotifyObserver + 387 10 Foundation 0x00007fff84234887 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:] + 756 11 AppKit 0x00007fff8671127f -[NSController _notifyObserversForKeyPath:change:] + 206 12 AppKit 0x00007fff8697ea19 -[NSArrayController didChangeValuesForArrangedKeys:objectKeys:indexKeys:] + 120 13 AppKit 0x00007fff8697e65c -[NSArrayController _selectObjectsAtIndexesNoCopy:avoidsEmptySelection:sendObserverNotifications:forceUpdate:] + 589 14 AppKit 0x00007fff869c1277 -[NSArrayController _selectObjectsAtIndexes:avoidsEmptySelection:sendObserverNotifications:forceUpdate:] + 83 15 AppKit 0x00007fff869c121f -[NSArrayController setSelectionIndexes:] + 27 16 Foundation 0x00007fff8422ed7a _NSSetUsingKeyValueSetter + 62 17 Foundation 0x00007fff8422e8ad -[NSObject(NSKeyValueCoding) setValue:forKey:] + 400 18 Foundation 0x00007fff84260bb2 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 349 19 AppKit 0x00007fff869d333b -[NSBinder _setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error:] + 243 20 AppKit 0x00007fff869d2eaa -[NSBinder setValue:forBinding:error:] + 260 21 AppKit 0x00007fff86c94562 -[NSTableBinder tableView:didChangeToSelectedRowIndexes:] + 136 22 AppKit 0x00007fff86db1030 -[_NSBindingAdaptor tableView:didChangeToSelectedRowIndexes:] + 153 23 AppKit 0x00007fff86868b71 -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 139 24 AppKit 0x00007fff8683f5fa -[NSTableView _enableSelectionPostingAndPost] + 425 25 AppKit 0x00007fff868659c2 -[NSTableView mouseDown:] + 5030 26 AppKit 0x00007fff867cb0e0 -[NSWindow sendEvent:] + 6306 27 AppKit 0x00007fff8676368f -[NSApplication sendEvent:] + 5593 28 AppKit 0x00007fff866f9682 -[NSApplication run] + 555 29 AppKit 0x00007fff8697880c NSApplicationMain + 867 30 CoreDataTest 0x0000000100001552 main + 34 31 CoreDataTest 0x0000000100001524 start + 52 32 ??? 0x0000000000000003 0x0 + 3 )

I’ve been over it again and again and I can’t find anything wrong with my code. Does anyone have any pointers?

cheers!

Avatarsmall_pragsmall
11 Dec 2011, 20:50
Marcus S. Zarra (284 posts)

Looks like you have an uninitialized pointer that is just pointing to garbage.

Hard to diagnose without seeing the code associated with it.

You must be logged in to comment