• 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
Re: setKeyEquivalent trouble [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setKeyEquivalent trouble [SOLVED]


  • Subject: Re: setKeyEquivalent trouble [SOLVED]
  • From: Paolo Bertani <email@hidden>
  • Date: Tue, 16 May 2006 09:54:09 +0200

After a sheet (NSOpenPanel) was closed I was trying to change the default button on an NSPanel with

[myPanel setDefaultButtonCell:[buttonB cell]];

but it was not working.

The cause was that after the sheed ended the panel wasn't the key window (as it was before the sheet started).

Just adding

[myPanel makeKey];

solved the problem.

Paolo.


_______________________________________________ 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
References: 
 >setKeyEquivalent trouble (From: Paolo Bertani <email@hidden>)
 >Re: setKeyEquivalent trouble (From: Paolo Bertani <email@hidden>)

  • Prev by Date: Fwd: Need help with document, window controllers and bindings.
  • Next by Date: Re: setKeyEquivalent trouble [SOLVED] 2
  • Previous by thread: Re: setKeyEquivalent trouble
  • Next by thread: Re: setKeyEquivalent trouble [SOLVED] 2
  • Index(es):
    • Date
    • Thread