Re: 0 for 2
Re: 0 for 2
- Subject: Re: 0 for 2
- From: Jon Pugh <email@hidden>
- Date: Thu, 21 Jan 2010 11:18:29 -0800
At 1:02 PM -0600 1/21/10, Luther Fuller wrote:
>What does 'applicationWillFinishLaunching_' mean?
Xcode has documentation for this stuff. It's under the Help menu as "Developer Documentation". Copy and paste the "applicationWillFinishLaunching" without the underscore into the Find box of the window that appears. Make sure the search settings are for global search and all documents or you might not get a hit.
Basically, it is a method that's part of the NSApplicationDelegate Protocol, which is a set of methods that are called when the application's status changes. In this case, this method is called when the app is about to, duh, finish launching. There's another method called applicationDidFinishLaunching which is unsurprisingly called after it's finished launching.
The full set of methods which make up this protocol are:
Launching Applications
applicationWillFinishLaunching:
applicationDidFinishLaunching:
Terminating Applications
applicationShouldTerminate:
applicationShouldTerminateAfterLastWindowClosed:
applicationWillTerminate:
Managing Active Status
applicationWillBecomeActive:
applicationDidBecomeActive:
applicationWillResignActive:
applicationDidResignActive:
Hiding Applications
applicationWillHide:
applicationDidHide:
applicationWillUnhide:
applicationDidUnhide:
Managing Windows
applicationWillUpdate:
applicationDidUpdate:
applicationShouldHandleReopen:hasVisibleWindows:
Managing the Dock Menu
applicationDockMenu:
Displaying Errors
application:willPresentError:
Managing the Screen
applicationDidChangeScreenParameters:
Opening Files
application:openFile:
application:openFileWithoutUI:
application:openTempFile:
application:openFiles:
applicationOpenUntitledFile:
applicationShouldOpenUntitledFile:
Printing
application:printFile:
application:printFiles:withSettings:showPrintPanels:
All of these are documented in Xcode. You may need to download the documents from Apple if you didn't install them as part of Xcode, but Xcode knows how to download them. It depends on what version you are running as to how you do it. In 10.5 it's controlled from the left pane of the documentation window, but in 10.6 the controls have moved to Preferences.
Learning how to read this documentation is the primary task for learning Cocoa, Cocoa Touch and AppleScriptObjC, as all of them make use of these Cocoa method calls. In addition to providing you with methods you can implement to be called, there are also objects and methods for you to call in order to perform tasks. It's a very rich class library, which is stunningly accessible to AppleScript.
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >Re: 0 for 2 (From: "Stockly, Ed" <email@hidden>) |
| >Re: 0 for 2 (From: Luther Fuller <email@hidden>) |