Race Condition with NSPopUpButton.
Race Condition with NSPopUpButton.
- Subject: Race Condition with NSPopUpButton.
- From: Tommy Nordgren <email@hidden>
- Date: Tue, 2 Aug 2005 14:41:52 +0200
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].
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:
This email sent to email@hidden