• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Race Condition with NSPopUpButton.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Race Condition with NSPopUpButton.[Solved]
      • From: Tommy Nordgren <email@hidden>
  • Prev by Date: NSDate: dates before the year 100
  • Next by Date: Re: Race Condition with NSPopUpButton.[Solved]
  • Previous by thread: Re: NSDate: dates before the year 100
  • Next by thread: Re: Race Condition with NSPopUpButton.[Solved]
  • Index(es):
    • Date
    • Thread