I would like to make a java app that shows the current battery level of my mac OS X.
I have read http://stackoverflow.com/questions/25552/using-java-to-get-os-level-system-information and was wondering how I could modify this to make it display the current % of battery
Thanks
...
Running MySQL Ver 14.14 Distrib 5.1.37 on Mac OS X 10.5. Logs contain the following message
Suspicious setup: User "mysql" maps to user: _mysql
Should I be concerned?
...
I'm very new to Cocoa for MacOSX, but I can't help but feel like I'm constantly fighting Interface Builder.
My current situation is that I'm building an app that will have several custom controls and views. I started building the app in Interface Builder because it was initially very easy to drag things around and get them into the corr...
I'm new to the world of Mac programming. Can someone please tell me what the equivalent of reusable COM components are in Mac and some links to a good resource to get started (in creating reusable COM-like components and referring those components from a calling app)? Thank you.
Clarification:
- I wish to know if there exist a similar t...
I'm attempting to migrate a Core Data SQLite store in my Mac OS X Leopard app. The migration itself is simple, there's just a couple of changes between the model versions, and there's one custom NSEntityMigrationPolicy that does a little bit of string manipulation.
99% of the time, this works perfectly. However, occasionally it crashes ...
I'm a Windows developer... I know nothing about Apple Mac OS X.
In Windows one uses Windows Installer to install packages.. For historical reasons, installation is not an easy thing in Windows.
I was wondering what is the OS X story? Just curious.
...
I have written a mini web-server which needs to serve up a few static html files in addition to performing its own custom processing. Could you suggest a reasonable location on the file system where I should store these files, for both Linux and Mac OSX (they need a dedicated directory that I can chroot to).
...
My program reads device paths like /dev/rdisk0 from input and then it looks in IOKit for a disk with the BSD name disk0. For this I have to remove /dev/r from the path.
Hard coding this path can break in future versions of Mac OS X. Therefore I though of another way: I could match the IOService using the BSD Major and Minor version of t...
I'm looking for reading material to bridge the gap between "read Hillegass multiple times" and "productive Cocoa programmer". What materials do you suggest?
I am not particularly looking for iPhone/Cocoa Touch resources, though if they are also relevant to Mac programming, I'd take a look.
Edit: I do appreciate that there is no substit...
Hi
As the title says, I am looking for source code that shows how to read(write) MS Excel files in pure C (OS agnostic). I have seen some Java code (e.g. JExcel) and would use that if I can't find some existing C code with similar functionality.
What I need is to read an Excel file and convert it to XML (or some other more manageable f...
I'm working on a Rails application which I've set up locally on my OSX Machine. However, the app, which typically runs on a Linux box, connects to a proprietary database via unixODBC. The database manufacturer only provides drivers for Linux and Windows. I did some searching around but couldn't figure out what the state of unixODBC is...
I'm writing a tool in Perl that needs to scan for certain binary patterns inside an executable file on a Mac OSX. To avoid getting very many false positives, I want to restrict my search to the data/text segment of the executable, excluding the code segment and a few other things. How can I accomplish this?
...
I have a custom NSFormatter attached to several NSTextFields who's only purpose is to uppercase the characters as they are typed into field. The entire code for my formatter is included below.
The stringForObjectValue() and getObjectValue() implementations are no-ops and taken pretty much directly out of Apple's documentation. I'm usin...
I'm looking for a way to make a dual executable file for Windows/Mac. That is, I can execute the file in either OS and it would run some piece of code that I want for that OS. This code can be either a script or (preferably) natively compiled code, but it needs to run on the vanilla OS without needing any extra tools or libraries insta...
Hello,
I'm trying to test a file (Account.cs) using testfile (AccountTest.cs). I run OSX 10.6 with Mono Framework (and nunit-console).
Below is Account.cs
namespace bank
{
using System;
public class InsufficientFundsException : ApplicationException
{
}
public class Account
{
private float balance;
...
I was bored and playing around with various options to gcc to see what size binaries I could produce.
I found a -s flag in ld64 that is supposedly supposed to not include symbol table information in an executable. The manpage for ld64 says the flag is ignored.
The manpage for gcc says it's a linker option(which to me implies it means i...
I want to add a folder ~/Projects/Scripts so I can use require script where script is a ruby file in this directory.
How does the require ruby method works? Does it load from a enviornment variable and if so what?
...
Hi,
I have a problem with RubyCocoa, which has a weak link to a libruby.dylib and not always can find this dylib on user's computer, which resulting a crash on the launch of my application (RubyCocoa based). I wonder whether it's possible to copy Ruby.framework to the bundle of my application and tell somehow to RubyCocoa to look for ru...
How do I get blocks/grand central dispatch working in Snow Leopard? It appears that the library is not installed by default: when I try to do #include <dispatch/dispatch.h>, I get a library not found error.
I have tried making the source I found here: http://libdispatch.macosforge.org/ but it generated an error (internal.h:99:27: error:...
Hello,
Is there a elegant way to convert 'const wchar *' to 'const char *' on Mac OS X?
Kat
...