• 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
message to zombie NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

message to zombie NSWindowController


  • Subject: message to zombie NSWindowController
  • From: James Walker <email@hidden>
  • Date: Mon, 16 Nov 2009 19:26:56 -0800

When running on Tiger, my NSWindowController subclass that runs a modal preferences dialog gets a retain message after it has been deallocated. I can't reproduce this on Snow Leopard. The backtrace starts:

#0 0x92cc5fb8 in -[_NSZombie retain] ()
#1 0x92c2f1cc in -[NSInvocation retainArguments] ()
#2 0x93c5bc70 in _NSSendCommitEditingSelector ()
#3 0x93c7f1ec in -[NSController _controllerEditor:didCommit:contextInfo:] ()
#4 0x90a461f4 in objc_msgSendv ()
#5 0x92bf3fcc in -[NSInvocation invoke] ()
#6 0x92bf457c in -[NSInvocation invokeWithTarget:] ()
#7 0x92c02f38 in __NSFireDelayedPerform ()
#8 0x907f2384 in __CFRunLoopDoTimer ()


Items #2 and #3 make me think this might have something to do with the NSEditor protocol, but I don't understand how. As far as I can tell, I don't have any objects that conform to that protocol... no NSDocument, no NSObjectController, etc.

I saw a release note saying that in 10.5, NSWindowController was changed to send setNextResponder: nil to its window on dealloc, to prevent zombie messaging, so I tried that, but no joy.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


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: message to zombie NSWindowController
      • From: James Walker <email@hidden>
  • Prev by Date: Re: Trouble with NSSegmentedControl
  • Next by Date: Re: Where are the interface builder components?
  • Previous by thread: NSOpenPanel accessoryView and new windows...
  • Next by thread: Re: message to zombie NSWindowController
  • Index(es):
    • Date
    • Thread