A simple Mac note-taking app to demonstrate Cocoa programming.
Stars
11
Forks
2
Watchers
11
Open Issues
0
Overall repository health assessment
No package.json found
This might not be a Node.js project
84
commits
1
commits
Merge remote-tracking branch 'refs/remotes/origin/master'
a2d66c7View on GitHubAdd an explanatory comment on why I placed the file saving and loading code in a class extension file.
ca4d6f9View on GitHubRemove the NSToolbarItem subclass file, ToolbarButton.swift, from the project. I went with image toolbar items to add and remove note to avoid subclassing.
bffc831View on GitHubReplace the toolbar buttons with image toolbar items so I can use the same code to validate the Delete Note toolbar item that I used to validate the Delete Note menu item. I can also get rid of the NSToolbarItem subclass.
260b19aView on GitHubAdd a comment telling people where to validate additional menu items.
36cb987View on GitHubOverride the validate function to disable the Delete Note toolbar button when there are no notes.
53f2c02View on GitHubSet the class of the Delete Note toolbar button to my ToolbarButton subclass.
a976bd9View on GitHubAdd a ToolbarButton subclass of NSToolbarItem so I can disable the Delete Note button if the notes array is empty.
78ba441View on GitHubValidate the user interface item so the Delete Note menu item is enabled only if there are notes to delete.
ff11b60View on GitHubAdd a class extension file to SplitViewController to validate the Delete Note menu item so it's enabled only if there are notes to delete.
85c3495View on GitHubRemove the code for the function registerForNotifications. I set the text view's delegate to the text view controller in the storyboard. By setting the delegate, the text view controller can handle the textDidChange notification without having to add an observer to the notification center.
1e30a0eView on GitHubMake the text view controller the delegate for the text view. By doing this the text view controller does not have to manually observe the textDidChange notification. I can remove the code registering for the notification.
d7654a1View on GitHubAdd a comment to explain the ?? clause in the read statement.
749aec8View on GitHub