FROM : Hal Mueller
DATE : Fri Apr 18 23:35:57 2008
Maybe try
[[NSNotificationCenter defaultCenter] removeObserver:nil name:nil
object:self]
in your dealloc method? I think that will patch the symptom, but I
still don't understand why you're getting the original error.
This bit looks important though. Makes me wonder if you've got things
wired up in IB the way they should be, or some other similar hard-to-
notice glitch.
On Apr 17, 2008, at 10:05 PM, Steve Nicholson wrote:
> When my app was simply an NSDocument, it worked fine: when the
> window closed, the bindings were automatically broken. But now that
> I'm using NSDocument and NSWindowController, they aren't.
The section on Window Closing Behavior in the Document-Based
Application Overview might help:
file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/Documents/Concepts/WindowClosingBehav.html
Hal
DATE : Fri Apr 18 23:35:57 2008
Maybe try
[[NSNotificationCenter defaultCenter] removeObserver:nil name:nil
object:self]
in your dealloc method? I think that will patch the symptom, but I
still don't understand why you're getting the original error.
This bit looks important though. Makes me wonder if you've got things
wired up in IB the way they should be, or some other similar hard-to-
notice glitch.
On Apr 17, 2008, at 10:05 PM, Steve Nicholson wrote:
> When my app was simply an NSDocument, it worked fine: when the
> window closed, the bindings were automatically broken. But now that
> I'm using NSDocument and NSWindowController, they aren't.
The section on Window Closing Behavior in the Document-Based
Application Overview might help:
file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/Documents/Concepts/WindowClosingBehav.html
Hal
| Related mails | Author | Date |
|---|---|---|
| Steve Nicholson | Apr 17, 21:59 | |
| Hal Mueller | Apr 18, 06:01 | |
| Steve Nicholson | Apr 18, 07:05 | |
| Hal Mueller | Apr 18, 23:35 | |
| Steve Nicholson | Apr 21, 20:07 |






Cocoa mail archive

