Resize Superviews

2014-10-05 Thread Charles Jenkins
I put an important question in a post with too much other information, so I’m not surprised nobody answered it. I need a text editor control that will size itself vertically to contain text as the user types or pastes it in. That means: The text container must size itself vertically to fit

Re: Resize Superviews

2014-10-05 Thread Charles Jenkins
Well naturally, two minutes after posting this question, I finally found Apple’s TextSizingExample. I’m going to try implementing what I learned from that, then I’ll ask my question again if that’s not enough to help me cross the finish line. — Charles Jenkins On Sunday, October 5, 2014

Re: Stack?

2014-10-05 Thread Jonathan Mitchell
On 4 Oct 2014, at 02:06, Charles Jenkins cejw...@gmail.com wrote: Okay, here’s a dumb question… How do you make a stack view actually stack things? When I add subviews into a stack view, instead of appearing one after another as I expect, they’re all laid on top of one another.

Document Based app with SQLite backing store

2014-10-05 Thread Luther Baker
Hi, I'm learning a bit about Cocoa Desktop development and I'd like to create a Document based app with a SQLite backing store. First of all, the wizard/template does this just fine for me --- but the resulting class, XIB and sqlite store are all called Document. I'd like to change that name

Re: A Stack of Editors

2014-10-05 Thread Keary Suska
On Oct 4, 2014, at 8:49 PM, Charles Jenkins cejw...@gmail.com wrote: Keary, I see you’re right: NSTableViewDelegate’s tableView:heightOfRow: will be key if my stack of editors appears in a table view. I’ve been struggling all day to get a test program to call my delegate’s functions. I must

Validate NSDocument on Quit

2014-10-05 Thread Keary Suska
I am trying to prevent a quit in a document-based app when data in a document is invalid. AFAICT when auto save is turned on none of the normal document closing methods are called, and when the app delegate is called, NSDocumentController shows no existing documents. It might also have to do

Re: Validate NSDocument on Quit

2014-10-05 Thread Kyle Sluder
On Oct 5, 2014, at 7:36 AM, Keary Suska cocoa-...@esoteritech.com wrote: I am trying to prevent a quit in a document-based app when data in a document is invalid. AFAICT when auto save is turned on none of the normal document closing methods are called, and when the app delegate is called,

Re: Validate NSDocument on Quit

2014-10-05 Thread Jonathan Mitchell
On 5 Oct 2014, at 15:36, Keary Suska cocoa-...@esoteritech.com wrote: I am trying to prevent a quit in a document-based app when data in a document is invalid. AFAICT when auto save is turned on none of the normal document closing methods are called, and when the app delegate is called,