Adding Markers to Text Lists when Pressing the Return Key

December 12th, 2016

Filed under: Cocoa, Mac Development | Be the first to comment!

I tried using Apple’s NSTextList class for creating ordered and unordered lists in an application I’m developing. I was able to create lists, but when I pressed the Return key inside an unordered list, no bullet was added. Because of this flaw in NSTextList I decided to implement my own class for lists. But I […]


NSTableView Disappearing Text

November 23rd, 2016

Filed under: Cocoa, Mac Development | Be the first to comment!

I was having a problem with disappearing text in a table view in a Mac application I’m developing. Selecting an item in the table view erased that item’s text from the table view. The table view is part of a split view. Dragging the split view’s divider erased the text from every item in the […]


Maintaining NSTextView Insertion Point After Core Data Save

November 21st, 2016

Filed under: Cocoa, Mac Development | 1 comment

I am working on a Mac journaling application that uses Core Data. The user interface consists of a table view and a text view. The table view contains a list of dates. Selecting a date fills the text view with what was written on that date. Use the text view to write. One problem I […]


Creating PDFs with Core Text and Quartz

August 28th, 2016

Filed under: Mac Development | Be the first to comment!

I’m working on a project where I need to create PDF files for long documents. When I searched online for information on Core Text and creating PDF files, I didn’t find much so I’m sharing what I’ve learned. I have not tried creating PDFs on iOS, but most of this material should apply to iOS […]


Keep Part of a SpriteKit Scene from Scrolling

August 8th, 2016

Filed under: Game Development, iOS Development, Mac Development | Be the first to comment!

I covered the basics of scrolling a SpriteKit scene with a camera node in my Scrolling a SpriteKit Scene with SKCameraNode article. But I didn’t cover one thing many games need. Many games use part of the screen to display vital information to the player such as score and health. When you scroll the game […]