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                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to