3 May 2007 03:33
Best way to reboot a system...
Hello, I'm writing a small Cocoa app which has a button to reboot the system. What is the best way to do this? I looked at the reboot C function but it requires super-user. I would like to do it cleanly like the finder. Thanks, - Charles ------------------------------------------------------------------------ Charles Heizer Systems Management Solutions Group Lawrence Livermore National Laboratory 7000 East Ave. L-285 Livermore, CA 94550 Phone: (925)422-0197 Fax:(925)422-2425 email: heizer1@... ------------------------------------------------------------------------
.
How do I quickly get the index number and the title value of the
selected NSPopupButton ...
So here is what I've got and it works to populate the popup ...
[thePopUp removeAllItems];
[ thePopUp addItemsWithTitles:[NSArray arrayWithObjects: <at> "5 Minutes",
<at> "10 Minutes", <at> "15 Minutes", <at> "30 Minutes", <at> "1 hour", <at> "2 hours",
<at> "Never", <at> "1 Minute", nil]];
I hope this make sense,
Thanks,
- Charles
------------------------------------------------------------------------
Charles Heizer
Systems Management Solutions Group
Lawrence Livermore National Laboratory
7000 East Ave.
L-285
Livermore, CA 94550
Phone: (925)422-0197
Fax:(925)422-2425
email:
RSS Feed