Re: Document-based apps/Alert sheet
Re: Document-based apps/Alert sheet
- Subject: Re: Document-based apps/Alert sheet
- From: Francis Derive <email@hidden>
- Date: Fri, 23 Jun 2006 19:24:43 +0200
Found some material at www.cocoadev.com with
- (void)canCloseDocumentWithDelegate:(id)delegate
shouldCloseSelector:(SEL)shouldCloseSelector contextInfo:(void *)
contextInfo.
Hope it helps.
On Jun 23, 2006, at 6:11 PM, Francis Derive wrote:
La liste,
When I click on the window top left close button because the
document has been edited but not saved, an alert sheet is displayed
to get a chance to save it : this is the material "provided for
free" by the Cocoa framework.
How do I customize this sheet ?
This could be either to disable the Save... button ( because the
document not having a "valid" content ), or acting on the
implemention of the action of the Save... button so as to provide
for the same content validation checking.
Merci.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
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