Re: The KVO Race

2008-06-04 Thread Hamish Allan
On Tue, Jun 3, 2008 at 8:20 PM, Gordon Apple <[EMAIL PROTECTED]> wrote: >I guess I don't know hw to use that. The particular situation was a nib > that is document related, but loaded and opened later by menu. Ah, okay. But the solution is essentially the same: set up the observers when you'

Re: The KVO Race

2008-06-03 Thread Gordon Apple
OK, if I understand the documentation correctly, the first suggestion might work. Thanks. I don't think the second one is applicable here. (I have used that successfully within one class.) Yes, the observed editLayer in displayController was being observed by the displayEditcontroll

Re: The KVO Race

2008-06-03 Thread Keith Duncan
I have traced the problem to KVO race conditions. In most cases these can be solved by setting up the key dependencies and occasionally by using the NSKeyValueObservingOptionInitial (Leopard only) option. From your summary, I'm assuming that the editLayer property is dependent on the NSI

Re: The KVO Race

2008-06-03 Thread Gordon Apple
(Sorry about that. For got to chance the Subject. -- GA) I guess I don't know hw to use that. The particular situation was a nib that is document related, but loaded and opened later by menu. > On Tue, Jun 3, 2008 at 5:53 PM, Gordon Apple <[EMAIL PROTECTED]> wrote: > >> Both observations

Re: The KVO Race

2008-06-03 Thread Hamish Allan
On Tue, Jun 3, 2008 at 5:53 PM, Gordon Apple <[EMAIL PROTECTED]> wrote: > Both observations are set up in the same Nib > in "awakeFromNib". If you have dependencies between objects in your nib, you can use -[NSApplication applicationWillFinishLaunching:] to set things up. Hamish