Re: NSComboBox

2018-07-25 Thread John Harte
> On Jul 25, 2018, at 12:45 PM, Casey McDermott wrote: > > Apple's instructions for combo boxes say: "Note that while you can construct > your NSComboBox > so that users are restricted to only selecting items from the combo box’s > pop-up list, > this isn’t the combo box’s normal behavior."

Re: Quit helper app when main app terminates

2012-07-12 Thread John Harte
On Jul 12, 2012, at 12:33 PM, Jerry Krinock wrote: What is the best way to make a helper app quit when the associated main app quits (or crashes)? No harm will be done if it keeps running for a minute or so. I create a pthread with this code pid_t ppid = getppid ();// get

Re: Terminating subtasks reliably

2010-03-31 Thread John Harte
On Mar 31, 2010, at 4:28 AM, Jean-Daniel Dupas wrote: What does getppid() returns if the parent dies before the child reach this point ? Look like a race condition. The man page says getppid() will not fail, but not what happens after the parent dies. I will test this. Thanks John

Re: Terminating subtasks reliably

2010-03-31 Thread John Harte
On Mar 31, 2010, at 9:13 AM, John Harte wrote: What does getppid() returns if the parent dies before the child reach this point ? Look like a race condition. The man page says getppid() will not fail, but not what happens after the parent dies. I will test this. If the parent dies

Re: Terminating subtasks reliably

2010-03-30 Thread John Harte
On Mar 30, 2010, at 4:01 PM, McLaughlin, Michael P. wrote: I have a Cocoa app (Leopard) which launches several Foundation Tool subtasks (since threads are not sufficient in this case). Currently, I terminate these subtasks via the app-delegate method

Re: Node hierarchy with subclasses

2010-01-30 Thread John Harte
On Jan 29, 2010, at 9:38 AM, Jerry Krinock wrote: The problem is that when a subclass A is selected, the UI elements bound to subclass B no longer have valid bindings so generate an error. How can I solve this? In your tab view's delegate, implement tabView:willSelectTabViewItem:, and in