• 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
Re: Doc App - Errors closing an document.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Doc App - Errors closing an document.
      • From: Fredrik Olsson <email@hidden>
References: 
 >Doc App - Errors closing an document. (From: Fredrik Olsson <email@hidden>)

  • Prev by Date: Re: Drawing text on top of a progress bar
  • Next by Date: Re: Drawing text on top of a progress bar
  • Previous by thread: Doc App - Errors closing an document.
  • Next by thread: Re: Doc App - Errors closing an document.
  • Index(es):
    • Date
    • Thread