Re: Enabling File Open/Save etc in a non-document-based application
Re: Enabling File Open/Save etc in a non-document-based application
- Subject: Re: Enabling File Open/Save etc in a non-document-based application
- From: Roland King <email@hidden>
- Date: Wed, 16 Apr 2008 17:30:25 +0800
but they are already assigned to .. the first responder I think. And
they are disabled menu items too .. what enables them?
On Apr 16, 2008, at 5:26 PM, Ramón Medrano Llamas wrote:
It's easy, you must assign in Interface Builder an action to those
menu items that do the tasks you want.
2008/4/16, Roland King <email@hidden>:
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
--
Ramón Medrano Llamas
Coordinador de eventos & Webmaster
EUITIO Mac's Users & Developers
email@hidden
email@hidden
email@hidden
http://ramonmedrano.es/
Advertencia Legal:
Este correo electrónico es confidencial y no se autoriza su uso,
revelación, distribución, impresión o copia.
Este mensaje de correo electrónico y sus documentos adjuntos están
dirigidos exclusivamente a los destinatarios especificados.
La información contenida puede ser confidencial y/o estar legalmente
protegida.
Si Usted recibe este mensaje por error, por favor comuníqueselo
inmediatamente al remitente y elimínelo ya que usted no está
autorizado al uso, revelación, distribución, impresión o copia de
toda o alguna parte de la información contenida.
_______________________________________________
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