Re: Doc App - Errors closing an document.
Re: Doc App - Errors closing an document.
- Subject: Re: Doc App - Errors closing an document.
- From: Fredrik Olsson <email@hidden>
- Date: Wed, 14 Jun 2006 11:53:41 +0200
Fredrik Olsson skrev:
Repost but with more information.
<snip>
As kind of a last plead for help I have also uploaded a stripped down
project to:
http://peylow.no-ip.org/~peylow/StrippedDocApp.zip
Perhaps a pair of fresh eyes can locate the problem in no time
at all?
I have now stripped out the plug-in handling as well. And the only code
left is what is needed to init new NSDocument subclasses, and adding
them to the shared document controller.
It is a single app, and still the same crasches as before. I just do not
get it!
The new docuemnt code is reduced to:
- (IBAction)newMessage:(id)sender
{
MTGMTXDocument *doc = [[MTFiletransferDocument alloc]
initWithDatapacketRow:nil dataPath:@"/tmp"];
if (doc) {
[[NSDocumentController sharedDocumentController] addDocument:doc];
[doc makeWindowControllers];
[doc showWindows];
RELEASE(doc);
}
}
The MTFiletransferDocument and it's superclass MTGMTXDocument have been
stripped of all functionality except putting a string on a NSTextField
to show it actually do something.
http://peylow.no-ip.org/~peylow/StrippedDocApp.zip
// Fredrik Olsson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden