Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Implement CPAlert

#110

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.

Reported by Jake MacMullin · October 15th, 2008 @ 01:22 PM

State: resolved
Milestone: 0.6
Assigned to: nobody

Activity

  1. Francisco Tolmasky
    Francisco Tolmasky

    This would indeed be a good one to implement.

    October 16th, 2008 @ 02:43 AM

  2. Ross Boucher
    Ross Boucher
    • 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:

    alert:didEndWithReturnCode:contextInfo:

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

    Great start!

    October 19th, 2008 @ 05:48 PM

  3. Jake MacMullin
    Jake MacMullin

    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.

    October 19th, 2008 @ 05:55 PM

  4. Francisco Tolmasky
    Francisco Tolmasky
    • Milestone set to 0.6
    • State changed from open to cla

    October 24th, 2008 @ 12:36 PM

  5. Ross Boucher
    Ross Boucher
    • State changed from cla to resolved

    November 10th, 2008 @ 08:16 AM

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.