Re: NSNotifications
Re: NSNotifications
- Subject: Re: NSNotifications
- From: Mike Abdullah <email@hidden>
- Date: Wed, 25 Oct 2006 20:08:54 +0100
What it sounds like is happening is that the notification is being
sent, but due to the way your application's run loop operates, it's
not actually being received until the mouse is released.
In addition, for something you want to update in real time,
NSNotifications probably aren't the greatest idea. You are probably
better off using Key Value Observing, or even getting your model to
directly tell the views that a change has occurred.
Mike.
On 25 Oct 2006, at 15:16, Aaron Boothello wrote:
Im trying to figure out NSNotifications.
My Application is a 3D modelling application. i have 4 views of the
same 3D Scene. When the scene is manipulated, i want the 4 views to
update their display (in real time, as the mouse is dragged across
the screen).
Ive got NSNotification working (i think), but the views only get
updated when when i let go of the mouse button.
Ive traced the program, to the point where i know the notification
is being posted just fine. but is only "broadcast/received" by the
observers after i let go of the mouse. Is this normal ? is there
anywhere around this ? cause i do need real-time updates of all views.
Thanks for your help guys.
-Aaron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden