Seeing nil passed to isEqual:, despite non-null declaration
Seeing nil passed to isEqual:, despite non-null declaration
- Subject: Seeing nil passed to isEqual:, despite non-null declaration
- From: Sean McBride <email@hidden>
- Date: Fri, 13 Jan 2017 12:46:50 -0500
- Organization: Rogue Research Inc.
Hi all,
NSObject.h declares:
- (BOOL)isEqual:(id)object;
Note the parameter is not nullable. And yet, I'm seeing nil passed to one of my class's overrides of isEqual: when I invoke Edit>Undo. Backtrace:
#4 -[RRLookupTable isEqual:]
#5 -[NSManagedObject(_NSInternalMethods) _updateFromUndoSnapshot:] ()
#6 -[NSManagedObjectContext(_NSInternalChangeProcessing) _undoInsertions:] ()
#7 -[_NSUndoStack popAndInvoke] ()
#8 -[NSUndoManager undoNestedGroup] ()
#9 _os_activity_initiate ()
#10 -[NSApplication(NSResponder) sendAction:to:from:] ()
#11 -[NSMenuItem _corePerformAction] ()
#12 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] ()
#13 _os_activity_initiate ()
#14 -[NSMenu performKeyEquivalent:] ()
#15 routeKeyEquivalent ()
#16 -[NSApplication(NSEvent) sendEvent:] ()
#17 -[NSApplication run] ()
#18 NSApplicationMain ()
#19 main
Anyone ever seen nil passed to isEqual:? Is the SDK declaration maybe wrong?
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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