Re: NSAlert - multiple key equivalents for buttons?
Re: NSAlert - multiple key equivalents for buttons?
- Subject: Re: NSAlert - multiple key equivalents for buttons?
- From: David Reitter <email@hidden>
- Date: Wed, 7 Oct 2009 15:01:29 -0400
On Oct 7, 2009, at 2:48 PM, Kyle Sluder wrote:
On Wed, Oct 7, 2009 at 11:19 AM, David Reitter <email@hidden
> wrote:
window = (MyNSAlert*) [window clone];
What is this -clone method?
I meant NSObject's -copy. Confused it with Java's clone method.
That way I could get NSAlert to do all the layout and prepare the
window,
but then take over and roll my own?
No, because even granting the existence of this -clone method, despite
your cast (which I assume you meant to be to MyNSWindow, not
MyNSAlert) the object isn't an instance of MyNSWindow.
Yes, MyNSWindow. Pity this won't work.
FWIW, the alerts are run with beginModalSessionForWindow and
runModalSession.
Would it be possible to add a control to the alert that is invisible,
but has the desired extra keyEquivalent?
- D
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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