Crash in NSBinder

2010-09-30 Thread Cate Tony
I just received two crash reports from a beta tester. Here's the common back-trace: Thread 0 Crashed: 0 libobjc.A.dylib 0x937de688 objc_msgSend + 24 1 com.apple.AppKit0x9625a7b9 -[_NSBindingInfo dealloc] + 128 2 com.apple.CoreFoundation0x

NSDocument: messages sent to closed document

2009-01-17 Thread Cate Tony
1. Open one document. 2. Open a second document. 3. Close the second document 4. Click on the File or Help menu Crash: message sent to dealloc instance of NSDocument. Here's an interesting twist. 1. Open one document. 2. Open a second document. 3. Close the first document 4. Click on the File or

NSNetService connection difficulty

2008-10-04 Thread Cate Tony
I've created a small server that appears to set up and publish itself. I then created a small client app that 'sees' the server but fails to connect. The error I'm getting is: Address family not supported by protocol family. The address->sa_family is AF_INET. The socket type is: SOCK_STREAM

*** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50

2008-08-24 Thread Cate Tony
This was a surprise. Here's the relevant code: - (void)saveDocumentAs:(id)sender { NSSavePanel *panel = [NSSavePanel savePanel]; [panel setRequiredFileType:@"abcd"]; [panel beginSheetForDirectory: [documentPath stringByDeletingLastPathComponent]

I don't understand why this is leaking...

2008-08-09 Thread Cate Tony
This code is leaking: - (void)saveItemExtensions:(id)sender { NSMutableString* itemExtensionsFilePath = [NSMutableString stringWithString:@"~/Library/Preferences/MyApp/extensions.abc"]; NSDictionary* extensions = [NSDictionary dictionaryWithDictionary: [itemDataSource itemExtensions]];