Hello,

please, could you clarify one thing for me? In document-based apps, if I
were to implement my own document controller, how would I trigger the
saving of a file? In other words, in menu there is an item which fires
"saveDocument:" and in document there is a method "saveDocument:" - how
does the action travels through document controller? In yet another words:

(Menu) saveDocument: -> (Document controller) ? -> (Document) saveDocument:

Do I have the picture right? Is it ok to write something like (in the
controller):

- (void)saveDocument:(id)sender {
    [[self currentDocument] saveDocument:sender];
}

I think I just need to pass "saveDocument:" from the menu to the document,
am I right?

Kind regards,

Ecir Hana
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to