Re: Application Termination for Mac Reboot
Re: Application Termination for Mac Reboot
- Subject: Re: Application Termination for Mac Reboot
- From: apr trainees <email@hidden>
- Date: Tue, 8 Mar 2005 00:00:22 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Actually this application is a startup item.so we have
included it in the mac startup folder in system
directory.
we've implemented "applicationshouldTerminate
delegate" also.
Now when we run the application from xcode and try
quitting,it calls the "applicationshould Terminate
delegate" function.
however when it runs directly from startup and we try
restarting it does not call "applicationshould
Terminate delegate"
as far as i know.only "applicationshould Terminate
delegate" has to be handled.
is there any other function i should include.
kindly guide me since iv not done extensive
programming in cocoa.
Thanx
--- Bryan Pietrzak <email@hidden> wrote:
>
> On Mar 8, 2005, at 1:01 AM, apr trainees wrote:
>
> > I have this application running and doing
> perfectly
> > fine.
> >
> > The problem arises when I reboot the Mac. Before
> > reboot there is a message that My application has
> not
> > exited, and deny reboot till I manually exit the
> > application from the Dock.
> >
> > Can I do something so that this manual termination
> can
> > be made automatic, so on reboot there isn't any
> need
> > to exit the application.
>
> You need to handle the four or five core
> AppleEvents, including the
> Quit event. This is something all well-behaved mac
> apps do.
> Typically, you only care about the open doc and quit
> app events. Though
> really you should handle the reopen event as well.
>
> Or make sure your app is modern and using
> RunApplicationEventLoop.
>
> Bryan
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
_______________________________________________
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