Blue default button style hangs.
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