Re: Race Condition with NSPopUpButton.[Solved]
Re: Race Condition with NSPopUpButton.[Solved]
- Subject: Re: Race Condition with NSPopUpButton.[Solved]
- From: Tommy Nordgren <email@hidden>
- Date: Tue, 2 Aug 2005 14:59:28 +0200
Aug 2, 2005 kl. 2:41 PM skrev Tommy Nordgren:
I've got an custom NSView class, that contains a nested NSpopUpButton.
My class listen for the NSPopUpButtonWillPopUpNotification from the
nested
NSPopUpButton, and when recieving it, sets a member variable, and
calls
[self setNeedsDisplay:yes].
my problem was fixed by listening to the message
NSMenuWillSendActionNotification
from the NSMenu enclosed in the NSpopUpButton instead.
For some reason, the drawRect method gets called BEFORE the
NSPopUpButton
is updated to its new value, causing the display which depends on
the currently
selected item of the NSpopUpButton to always be out of sync.
What steps can I take to fix this?
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40chello.se
This email sent to email@hidden
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
_______________________________________________
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