Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Strange NSDocument Behavior

Strange NSDocument Behavior
Thread Tools
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Nov 5, 2002, 06:43 PM
 
All I ever wanted to do was make a simple NSDocument based app..

Okay, here's the deal: I made my favorite subclass of NSDocument, and all was going well except for one thing - closing is all the way farked up. That is, I close my main window, and it's only taken off the screen. It's still in memory and still belongs to the NSDcoumentController (which I discovered by doing some timely NSLog's and by the fact that after I opened a file and tried to close it, I could never open it again). All I've implemented are readFromFile:ofType:, writeToFile:ofType:, init, makeWindowControllers, and windowControllerDidLoadNib: ... but none of these should cause the problem I'm describing.

Any ideas on what's going?

Thanks,
Matt
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Nov 5, 2002, 09:40 PM
 
Gah... forgot to call this on my NSWindowController instances:

Code:
[controller setShouldCloseDocument:YES];
Grr...
Matt
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2