Save menu items disabled for my NSDocument
Save menu items disabled for my NSDocument
- Subject: Save menu items disabled for my NSDocument
- From: email@hidden
- Date: Wed, 23 Nov 2005 15:59:45 -0000 (GMT)
- Importance: Normal
Hello,
Firstly - I'm new here, having just come to Cocoa (though I have plenty of
experience in C++ on Windoze); so apologies if this has been asked before
- I have searched and couldn't find an answer;
I have created a Cocoa app (Java) in a slightly roundabout way and its all
working very nicely so far - but now I am working on the saving and
loading. Its a document based app and I've followed all the guidelines -
I have the relevant data handling methods in my NSDocument subclass, and
my Nibs etc are all setup fine (all the menu items are connected to the
relevant actions in the first responder in the Nib and some of them; New,
Open and Close work!), but I have a problem in that when my document's
window controller is on screen the save, save as etc menu items are
disabled and I can't figure out why. I have messed about with the update
count business (I will do some stuff with undo - but later), and although
it now asks whether I want to save when I quit it doesn't actually do it,
and the menu items aren't enabled! I have looked at things like the
Sketch example and as far as I can tell - everything is practically
identical (except the actual implementation of preparing the NSData
objects etc.)
Any ideas?
Thanks a lot
Stephen.
_______________________________________________
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