
:no_upscale()/cdn.vox-cdn.com/uploads/chorus_asset/file/19542122/Screen_Shot_2019_12_19_at_10.58.52_AM.png)
In the Notes app, open the note that you wish to lock.Once you’ve done this initial process of setting a password, you can easily lock notes whenever you want, using the methods below. Enter a password hint to help remember your password.If you use more than one account, be sure to select the account you want to create the password for before setting it

Open the Notes app and go to Notes → Preferences.

So, if you want to know how to lock your notes on Mac to keep them secure, follow our guide step by step. This could include your passwords, monthly installment, scanned documents, and more. This will create an error but you’ll fix that now.The Notes is a handy app that you can use to store any information for quick access. This will configure the status item with an icon of the image you just added, and an action for when you click on the item. If you use your own custom image, make sure that the image is black and white and configured as a template image so the Status Item looks great against both light and dark menu bars.īack in AppDelegate.swift, add the following code to applicationDidFinishLaunching(_:)īutton.image = NSImage(named:NSImage.Name("StatusBarButtonImage"))īutton.action = #selector(printQuote(_:)) Change the Render As option to Template Image. Select the image and open the attributes inspector. Go to Assets.xcassets in the project navigator, download this image and drag it into the asset catalog. Next, you’ll need to associate an image to the status item to make your app recognizable in the menu bar. This creates a Status Item - aka application icon - in the menu bar with a fixed length that the user will see and use.

Let statusItem = (withLength:NSStatusItem.squareLength) Once the new project is set up, open AppDelegate.swift and add the following property to the class: Uncheck Create Document-Based Application, Use Core Data, Include Unit tests and Include UI Tests.įinally, click Next again, choose a place to save the project and click Create. Then make sure that Swift is selected as the language, and that Use Storyboards is checked. On the next screen, enter Quotes as the Product Name, choose your desired Organization Name and Organization Identifier. Go to File/New/Project… then select the macOS/Application/Cocoa App template and click Next. If you need a refresher, start with our macOS Development for Beginners tutorial for a great introduction. Note: This tutorial assumes you’re familiar with Swift and macOS.
