Tizzy over notifications
Tizzy over notifications
- Subject: Tizzy over notifications
- From: Drew McCormack <email@hidden>
- Date: Tue, 16 Oct 2001 09:31:00 +0200
I've managed to get myself in a real tizzy over notifications. I want to
keep data in two windows synchronized, but it isn't going to plan, and I
suspect the notifications mechanism I have in place.
The question I have is, are posted notifications dispatched immediately,
or are they sent at the end of the current event loop, or something like
that?
This is important for me so that I can establish the causal sequence of
events in my program. At the moment, things seem to be occurring in a
way I had not anticipated.
A more specific example is the NSTextDidEndEditingNotification. I
assumed this would only be posted if the user finished editing the text,
but it seems to also occur when you use the "setString:" method. Is that
correct? Also, related to what I asked above, will an object that has
requested this notification receive it directly after the text finished
editing, or will it only occur later (eg at the end of the event loop)?
Drew McCormack
================================
Dr. Drew McCormack
Department of Theoretical Chemistry
Science Faculty
Free University Amsterdam
De Boelelaan 1083
1081 HV Amsterdam
The Netherlands
Email :: email@hidden
Tel. :: +31 20 44 47623
Fax :: +31 20 44 47629