On Jun 18, 2010, at 3:51 AM, Jean-Daniel Dupas <devli...@shadowlab.org> wrote:

> 
> On Jun 18, 2010, at 2:02 AM, Kyle Sluder wrote:
> 
>> On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
>> <angelochen...@yahoo.com.hk> wrote:
>>> I have a non document based application, I quit the app by sending 
>>> terminate to NSApplication(file owner). if I close the main window, 
>>> application will not be closed, what I'd like is, when user close the main 
>>> window, application also terminates, possible? Thanks,
>> 
>> Non-document-based apps typically don't do this.
>> 
>> That said, look at -applicationShouldTerminateAfterLastWindowClosed:
>> in the NSApplicationDelegate protocol.
>> 
>> --Kyle Sluder
> 
> Non document based applications typically do this:
> 
> Try Disk Utilities, DigitalColor Meter, Network Utility, System Preferences, 
> Image Capture, Photo Booth…

Vs. Keychain Access, Workfroup Manager, Server Admin, iTunes… unless perhaps my 
definition of "document-based" (each window represents a thing to be 
saved/loaded) is too literal.

--Kyle Sluder_______________________________________________

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

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

Reply via email to