Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / August 2007



Tip: Looking for answers? Try searching our database.

dialog boxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mlabs - 24 Aug 2007 19:53 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
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...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.