• 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
Seeing nil passed to isEqual:, despite non-null declaration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Seeing nil passed to isEqual:, despite non-null declaration
      • From: Quincey Morris <email@hidden>
    • Re: Seeing nil passed to isEqual:, despite non-null declaration
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: What do NSArrayController, etc. do for me?
  • Next by Date: Re: What do NSArrayController, etc. do for me?
  • Previous by thread: Re: What do NSArrayController, etc. do for me?
  • Next by thread: Re: Seeing nil passed to isEqual:, despite non-null declaration
  • Index(es):
    • Date
    • Thread