#110 ✓resolved
Jake MacMullin

Implement CPAlert

Reported by Jake MacMullin | October 15th, 2008 @ 01:22 PM | in 0.6

There is currently no implementation of CPAlert to display a modal alert panel. It would be nice if there was.

Here's a patch that includes a basic implementation of CPAlert.

Comments and changes to this ticket

  • Francisco Tolmasky

    Francisco Tolmasky October 16th, 2008 @ 02:43 AM

    This would indeed be a good one to implement.

  • Ross Boucher

    Ross Boucher October 19th, 2008 @ 05:48 PM

    • State changed from “new” to “open”

    So, I have two questions so far:

    First, where did the graphics come from? If they are your original works, then great, but if not, do we have license to use them?

    Second, we should probably use HUD style buttons as opposed to the standard bezel style.

    Otherwise it looks good so far. I'd like to see some options for setting a title (both for the alert itself and the alert's window, which probably should just be the application name).

    Oh, and alertDidEnd:returnCode: -- I'd like to see a contextInfo parameter, and maybe we should consider calling it:


    It seems more Cocoa like to me (but, if people disagree, that's fine too).

    Great start!

  • Jake MacMullin

    Jake MacMullin October 19th, 2008 @ 05:55 PM

    Ok - thanks for the feedback. I meant to include the license for the images with the patch. They are from the Tango Desktop Project. From my reading of the license it is fine to use them - but you may want to double-check.

    http://tango.freedesktop.org/Tan... (see 'Terms of Use')

    Yes - HUD style buttons would be good - I'll go figure out how to do that now.

    As for the context info - I'll add it. I'd left it out as I didn't need it - but you're right that it'd be useful.

  • Francisco Tolmasky

    Francisco Tolmasky October 24th, 2008 @ 12:36 PM

    • Milestone set to 0.6
    • State changed from “open” to “cla”
  • Ross Boucher

    Ross Boucher November 10th, 2008 @ 08:16 AM

    • State changed from “cla” to “resolved”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins