Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSApplicationDelegateMBS class.

NSApplicationDelegateMBS.NSPrintingCancelled = 0

Type Topic Plugin Version
const Cocoa MBS MacCocoa Plugin 11.2
One of the constant values to reply to ApplicationPrintFiles event.

Printing was cancelled.

NSApplicationDelegateMBS.NSPrintingFailure = 3

Type Topic Plugin Version
const Cocoa MBS MacCocoa Plugin 11.2
One of the constant values to reply to ApplicationPrintFiles event.

Printing failed.

NSApplicationDelegateMBS.NSPrintingReplyLater = 2

Type Topic Plugin Version
const Cocoa MBS MacCocoa Plugin 11.2
One of the constant values to reply to ApplicationPrintFiles event.

The result of printing cannot be returned immediately, for example, if printing will cause the presentation of a sheet. If your method returns NSPrintingReplyLater it must always invoke replyToOpenOrPrint when the entire print operation has been completed, successfully or not.

NSApplicationDelegateMBS.NSPrintingSuccess = 1

Type Topic Plugin Version
const Cocoa MBS MacCocoa Plugin 11.2
One of the constant values to reply to ApplicationPrintFiles event.

Printing was successful.

NSApplicationDelegateMBS.NSTerminateCancel = 0

Type Topic Plugin Version
const Cocoa MBS MacCocoa Plugin 11.2
One of the constants to answer applicationShouldTerminate event.

The application should not be terminated.

NSApplicationDelegateMBS.NSTerminateLater = 2

Type Topic Plugin Version
const Cocoa MBS MacCocoa Plugin 11.2
One of the constants to answer applicationShouldTerminate event.

It may be OK to proceed with termination later. Returning this value causes Cocoa to run the run loop in the NSModalPanelRunLoopMode until your application subsequently calls replyToApplicationShouldTerminate with the value true or false. This return value is for delegates that need to provide document modal alerts (sheets) in order to decide whether to quit.

NSApplicationDelegateMBS.NSTerminateNow = 1

Type Topic Plugin Version
const Cocoa MBS MacCocoa Plugin 11.2
One of the constants to answer applicationShouldTerminate event.

It is OK to proceed with termination.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...