Enabling File Open/Save etc in a non-document-based application
Enabling File Open/Save etc in a non-document-based application
- Subject: Enabling File Open/Save etc in a non-document-based application
- From: Roland King <email@hidden>
- Date: Wed, 16 Apr 2008 16:58:53 +0800
First post. I've been dragging my way through the Cocoa documentation
and trying some simple apps. I started with non-document apps and of
course you still get the File menu, but most of it's disabled. I
understand that when you create a document-based app (and I have a lot
more reading to do there) those menu items are enabled and you get the
file browser etc for free.
I was trying to figure out if it's possible to enable and use the file
save and open even on a non-document-based app, eg assume some
stupidly simple app which just lets you 'open' any file you like and
gives you information about it in a window. I haven't been able to
understand what's driving those menu items, what's enabling and
disabling them in the Document-based app which isn't there in a non-
document-based one and what methods I'd need to supply if I wanted to
add that kind of support.
Is there an example out there somewhere of a non-document-based app
which uses some or all of the file menu items, or a piece of API
documentation I haven't found which explains it? Or is this just
something you just don't do .. if you want to use File menu stuff at
all .. you make a document-based app?
Thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden