• 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
Blue default button style hangs.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Blue default button style hangs.


  • Subject: Blue default button style hangs.
  • From: Russ <email@hidden>
  • Date: Wed, 12 Nov 2008 10:45:14 -0800 (PST)

I'm trying to get the blue default button style to show up. It's NSMomentaryPushInButton with NSRoundedBezelStyle. I have it set as InitialFirstResponder. Works fine to start with. But if I setKeyEquivalent:@"\r" on it, or take its parent (modal) window and setDefaultButtonCell:[btn cell] on it, then the window hangs when it opens ----

It waits on a semaphore in NSViewHierarchyLock from the view and windows's displayIfNeeded code, all from within the runModalForWindow.

So it seems that the button needs to complete some additional fun and games when it is being built, not later when it is being displayed and the change causes some kind of deadlock.

Ideas? Thanks.




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Blue default button style hangs.
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Setting up a main menu in a NIB(XIB)?
  • Next by Date: Re: Mysterious warning [SOLVED]
  • Previous by thread: Re: MyDocument's Window Outlet...
  • Next by thread: Re: Blue default button style hangs.
  • Index(es):
    • Date
    • Thread