If you're using standard C, the bitwise operators are required to operate as if the data they were handling was big-endian, regardless of what the underlying platform actually supp…
<strong>This is all on x86. Or maybe it was more data that was swapped (bytes over bits), I cant remember now. But I am almost positive it had nothing to do with the directio…
Sorry for being unclear - I was trying to get the point across without giving a comp-sci lecture What you say is absolutely correct.
Just out of curiousity, does anyone know w…
I think you have to be in supervisor mode and of course use assembly code to do the switch. Then I suppose you'd have to switch back if you want to use any system calls. Sounds lik…
Why don't you just write some simple byte swapping functions? I don't think it is possible for Apple hardware to run in little endian mode (although I may be wrong) because various…
Okay, so I found this very basic regular math expression parser, and it works great!... except that if you enter an expression long enough (about 25 characters in length) it dies. …
Is there any reason this wouldn't work?
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="…
Trying to get libmpeg2 working on OS X....
Everthing compiles fine (after my tweaking for CC instead of gcc) but I get this in the linker:
/bin/sh ../libtool --mode=link cc -g …
A link error means that there is a line of code that is making reference to a symbol (it can be a variable, or function, etc), that has not been defined. In this case, it looks li…
Yeah, I got it... actually got it figured out... they were being cut off by the preprocessor... figures I got the stuff off of sourceforge... after every revision, it's like... IT'…
I'd like to make a very simple command-line tool that can:
1. Set/read the monitor brightness (the actual lamp, not a ColorSync thing)
2. Set/read the system volume -- Nevermind, f…
Sorry, other than a cryptically named constant, all my best grepping and handreading through those frameworks and others hasn't turned up an obvious API for monitor brightness.
An…
Quote:
Originally posted by PipelineStall:
One way you may try and figure it out is if you have a PowerBook; when you press the brightness keys, loginwindow changes the …
Woah, blast from the past.
Incidentally, I ended up just setting the monitor gamma to zero, which turns the screen black, without actually changing the monitor brightness.
This t…
Well I really want to adjust brightness using software, as I try to write an application that sets the brightness when the battery status change.
Yes it is a recovered topic, I di…
I've noticed questions floating around about IDE's. I've played with a whole bunch of them. I've also contacted various companies with questions.
CodeWarrior e-mail date - 2/28/…
Hello, everyone!
I'm a very experienced C++ programmer, but new to Cocoa and Obj-C. I love what I see so far, just have some problems I'm hoping someone can help me with
1) Whe…
1) - is for instance methods, + for class methods (called "static" in C++ and Java)
2) I had problems making colors, too. colorWithDeviceRed ended up working, though.
3) Don't…
2) I can't seem to create RGB colors with NSColor. Do I use colorWithDeviceRed? or colorWithCalibratedRed?
"Device" colors are are colors which will always use those values, on an…