i'm looking for a good example of how to implement the equivalent to a
windows modal dialog box, with an OK and Cancel button. Currently I
have an NSPanel attached to it's own controller and I am using
showWindow to bring it up, but that's not modal. Also, I have actions
hanging off the OK and cancel buttons, which get hit, but they don't
close/hide the dialog.
Q: Is NSPanel the right way to go here?
Q: what's the difference between panels and sheets?
one good example of a modal dialog would be great..
TIA
mlabs - 24 Aug 2007 20:28 GMT
the other thing i wanted to ask was since my application has no main
window.. what do I use for 'modalForWindow' ..? I just want to
prevent users from simultaneously bringing up other windows from my
menulet menu ..
mlabs - 24 Aug 2007 23:56 GMT
> the other thing i wanted to ask was since my application has no main
> window.. what do I use for 'modalForWindow' ..? I just want to
> prevent users from simultaneously bringing up other windows from my
> menulet menu ..
ah .. figured it all out myself.... using nill for modalForWindow
seems to produce the effect i'm looking for..
Gregory Weston - 25 Aug 2007 12:18 GMT
> > the other thing i wanted to ask was since my application has no main
> > window.. what do I use for 'modalForWindow' ..? I just want to
[quoted text clipped - 3 lines]
> ah .. figured it all out myself.... using nill for modalForWindow
> seems to produce the effect i'm looking for..
<http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/Tasks/U
singAppModalDialogs.html>
Sean McBride - 25 Aug 2007 02:32 GMT
> i'm looking for a good example of how to implement the equivalent to a
> windows modal dialog box, with an OK and Cancel button. Currently I
[quoted text clipped - 8 lines]
>
> one good example of a modal dialog would be great..
How about NSAlert...