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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to