Simple starter Cocoa app ideas
Wednesday, December 11th, 2013Inspired partly by tonight’s Hour of Code, here are some index-card-sized outlines of some simple app projects you can make as someone new to Cocoa.
Text editor/word processor
- Document-based Mac app
- In document window: NSTextView
- Use NSAttributedString to read/write document data
- Document types:
- public.plain-text
- public.rtf
- com.apple.rtfd
- com.microsoft.word.doc
- Extra credit:
- Add a ruler (NSRulerView)
Picture viewer
- Document-based Mac app
- In document window: IKImageView
- Use CGImageSource to read image (picture) & its properties
- Document types:
- public.png
- public.jpeg
- Extra credit:
- Floating inspector panel showing the properties in an NSTableView
- Color-correction panel (IKImageEditPanel)
- Support folders (public.folder): display images from folder in IKImageBrowserView
PDF viewer
- Document-based Mac app
- In document window: PDFView
- Use PDFDocument to read from .pdf file
- Document types:
- com.adobe.pdf
- Extra credit:
- Toolbar with zoom in/out buttons, zoom % field, page number field