Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi, and welcome to the Dev Forums!
There isn't any UIApp in the iPhone UIKit, the application class is named UIApplication. However, while there was an undocumented terminate method in that class, I think it's been removed from the 3.0 SDK. The reason for this is that self-terminating apps violate the +iPhone Human Interface Guidelines+. The guidelines recommend putting up an alert message if an app can't continue. The user then terminates the app by pressing the Home button.
If you're not seeking to place your app in the Store, you can terminate it by calling exit(0).
Btw. there's no NSApp in the AppKit either. That application class is named NSApplication. Anyway, terminate is an instance method. There might be a define somewhere like:
#define NSApp [NSapplication sharedApplication]
- Ray
0
peterpenn·
Imported from the Apple Support Forums via the Wayback Machine 🔗