FROM : Mark Piccirelli
DATE : Fri Feb 08 23:47:47 2008
On Feb 8, 2008, at 1:58 PM, John Nairn wrote:
> I have run into several crashes in Leopard that never happened in
> Tiger. In all cases, the problem has been a notification sent to a
> deallocated object. I have been able to fix them, but why do these
> bugs keep happening in Leopard. Either Tiger was smarter (i.e., not
> sending messages to deallocated objects) or Leopard is handling
> notifications differently. I can document a difference now and
> wonder how is one supposed to know what to expect?
There were some changes in NSWindowController between Tiger and
Leopard. See the "New Behavior in NSWindowController at Window Closing
Time" and "Bug Fixes in -[NSWindowController dealloc]" sections in the
Leopard AppKit release notes at http://developer.apple.com/releasenotes/Cocoa/AppKit.html
. In a couple of places it's not releasing instead of autoreleasing.
Hopefully that explains what you're seeing.
-- Mark
DATE : Fri Feb 08 23:47:47 2008
On Feb 8, 2008, at 1:58 PM, John Nairn wrote:
> I have run into several crashes in Leopard that never happened in
> Tiger. In all cases, the problem has been a notification sent to a
> deallocated object. I have been able to fix them, but why do these
> bugs keep happening in Leopard. Either Tiger was smarter (i.e., not
> sending messages to deallocated objects) or Leopard is handling
> notifications differently. I can document a difference now and
> wonder how is one supposed to know what to expect?
There were some changes in NSWindowController between Tiger and
Leopard. See the "New Behavior in NSWindowController at Window Closing
Time" and "Bug Fixes in -[NSWindowController dealloc]" sections in the
Leopard AppKit release notes at http://developer.apple.com/releasenotes/Cocoa/AppKit.html
. In a couple of places it's not releasing instead of autoreleasing.
Hopefully that explains what you're seeing.
-- Mark
| Related mails | Author | Date |
|---|---|---|
| John Nairn | Feb 8, 22:58 | |
| John Stiles | Feb 8, 23:24 | |
| Mark Piccirelli | Feb 8, 23:47 | |
| Mark Piccirelli | Feb 8, 23:49 | |
| John Nairn | Feb 9, 00:59 |






Cocoa mail archive

