![]() ![]() 19:36:17.061 project1 activatingĪlternatively, you can view the output using the Applications > Utilities > Console. Typical log output when the executable is started from an Applications > Utilities > Terminal and the two added menu items are clicked before using the dock menu to $. setDelegate ( myAppDelegate ) end Initialization myAppDelegate := TMyAppDelegate. NSApplication.sharedApplication // - Returns the application instance, creating it if it doesn’t exist yet. ![]() FormCreate ( Sender : TObject ) begin // NSApp // - The global variable for the shared application instance. Home News Computing Easily find stuff on your Mac with LaunchBar By Craig Grannell published 20 March 2010 Better than Spotlight - search files, history and more Using simple syntax you can. BringToFront CloseAction := TCloseAction. isActive ) then begin NSLog ( NSStr ( 'exiting' )) exit end else // needed if any part of form is occluded or does not quit // until dock icon clicked when quitting via dock menu begin NSLog ( NSStr ( 'activating' )) Application. FormClose ( Sender : TObject var CloseAction : TCloseAction ) begin NSLog ( NSStr ( 'Leaving.' )) if ( NSApp. Button1Click ( Sender : TObject ) begin NSLog ( NSStr ( 'Closing' )) Close end procedure TForm1. addItem ( myMenuItem2 ) Result := myMenu end procedure TForm1. initWithTitle_action_keyEquivalent ( NSStr ( 'Hello Item 2' ), bSel, NSStr ( '' )). initWithTitle_action_keyEquivalent ( NSStr ( 'Hello Item 1' ), aSel, NSStr ( '' )). initWithTitle_action_keyEquivalent ( NSStr ( 'My Dock Menu' ), Nil, NSStr ( '' )). are the blue globules indicating which apps are currently running on your Mac. menuItemHello1 ) bSel := ObjCSelector ( TMyAppDelegate. A Dock that is easier on your eyes if you want to see all Dock's options. applicationDockMenu ( sender : NSApplication ) : NSMenu var aSel, bSel : SEL myMenu : NSMenu myMenuItem0 : NSMenuItem myMenuItem1 : NSMenuItem myMenuItem2 : NSMenuItem begin NSLog ( NSStr ( 'dock menu' )) aSel := ObjCSelector ( TMyAppDelegate. Rows are the horizontal lines, but here, vertical lines are termed as rows. If you never went through matrix terms, it means 7 rows by 5 columns. This button has a grid with 12 dots on it. If the main System Preferences menu does not appear, click Show All. Click the Apple menu in the upper-left corner of the screen. ![]() menuItemHello2 begin NSLog ( NSStr ( 'hello menu item 2' )) end function TMyAppDelegate. The Launchpad usually has an arrangement of 7×5. You can set your own shortcut to open the Launchpad as well. menuItemHello1 begin NSLog ( NSStr ( 'hello menu item 1' )) end procedure TMyAppDelegate. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |