NSDocument not displaying save prompt on dirty document

2016-05-23 Thread livinginlosangeles
I have an NSDocument subclass that is no longer displaying a save prompt when I close a dirty document using the close: IBAction. My document is marked as dirty and I am using the NSDocument’s NSUndoManager. I am not doing anything behind the document’s back by setting the update count, etc.

Re: NSAlert and threading

2016-05-23 Thread Jens Alfke
> On May 23, 2016, at 2:41 PM, Fritz Anderson wrote: > > Hence the rule that you don’t do _anything_ lengthy on the main (GUI-runloop) > thread. You can see how using a separate thread would solve your problem. > Welcome to 2003. Less dogmatically, you can use

Re: All threads in app periodically blocked

2016-05-23 Thread pscott
On 5/23/2016 1:56 PM, Fritz Anderson wrote: On 23 May 2016, at 1:37 PM, Seth Willits wrote: I'm telling you guys I used every skill I could think of, staring at zillions of system calls in traces etc, and in the end all I needed was a little luck and it was all due to a

Re: NSAlert and threading

2016-05-23 Thread Fritz Anderson
On 23 May 2016, at 4:14 PM, Tom Doan wrote: > > I have an menu operation which, before it fully executes, pops up > an NSAlert asking a Yes/No question ("Selection Only(Y/N)?") then, > depending upon the answer will either apply to the whole list or just > the selection.

NSAlert and threading

2016-05-23 Thread Tom Doan
I have an menu operation which, before it fully executes, pops up an NSAlert asking a Yes/No question ("Selection Only(Y/N)?") then, depending upon the answer will either apply to the whole list or just the selection. However, no matter what I do (other than putting the operation in a separate

Re: Core Data, OutlineView, TreeController

2016-05-23 Thread Quincey Morris
On May 23, 2016, at 11:16 , Raimond Hettrich wrote: > > I have the following problem with the constellation > coreData-treeController-outlineView. Well, you keep asking, and you keep getting no answer, because no one on this list knows the answer — the problem domain is

Re: All threads in app periodically blocked

2016-05-23 Thread Seth Willits
Holy cow!! I figured out why process was halting every 150 ms. I happened to find the critical clue by chance today. I was trying Ken's suggestion of explicitly using NSActivity to avoid any potential app napping (which wasn't what was happening), and for only then did the application

Core Data, OutlineView, TreeController

2016-05-23 Thread Raimond Hettrich
Hallo all, I´m new in objective-c coding and I have the following problem with the constellation coreData-treeController-outlineView. I’ve got an view based outlineView which shows an hierarchical tree. I can add a new row with the default values of my entities attributes. I can add new

Re: All threads in app periodically blocked

2016-05-23 Thread Seth Willits
> On May 22, 2016, at 12:44 PM, Quincey Morris > wrote: > > On May 22, 2016, at 10:48 , Seth Willits wrote: >> >> Can anyone think of what I should look for to figure out *why* they're >> blocked? > > Do these operations go on long