Sorry with these forums down I can't help much. What I would do is put in an NSImageView in Interface Builder and then write some code like this:
<pre><font size = 1 f…
I can't figure out how to make a Cocoa app handle keyDown (or for that matter, any) events. Could someone tell me how I would set up a keyDown catching thing? Thanks.
just how dependant on ppc hardware are the carbon language?
is there any API calls that just won't work on other hardware?
What i'm thinking is how difficult it would be to have …
Dependant on hardware? About as hardware dependant as C++. All carbon is is just a set of C++ API's to write to. If you want to use carbon on another platform you'll have to port a…
No, it is not easy. What you're talking about is porting a huge chunk of Mac OS X to x86. Even with access to the original source code, this is very difficult due to all sorts of s…
Except that Apple has already ported a large chunk of the Mac OS X code from Intel to PPC in the first place, and it's been rumoured that Apple has OS X for Intel working internall…
I was wondering what would be a good thing to do if I was ever given a null pointer when I tried to allocate something. I'd assume that there'd be no point in putting an alert on t…
Well, when I get a NullPointerException I log it to stderr via Exception.printStackTrace()...
Oh, wait a minute. You might not be programming in Java. Sorry, couldn't resist :-)…
Don't be too proud of java. Doesn't stderr just throw it into the console? I could do the same thing in C. I think that the default behaviour of printf, if I'm not running a progra…
The only time a memory allocation will fail on OS X is when:
(a) all the RAM is being used,
(b) all swap space on all drives is completely full, and
(c) there are no pages in memor…
Quote:
Originally posted by gregomni:
The only time a memory allocation will fail on OS X is when:
(a) all the RAM is being used,
(b) all swap space on all drives is com…
I guess that I have a question about unix memory management then. Suppose that I have opened and closed a whole bunch of programs so the memory is pretty fragmented.
There's nothi…
When I do "c++ virtfunc.cpp" I get:
Quote:
In file included from /usr/include/gcc/darwin/2.95.2/g++/libio.h:30,
from /usr/include/gcc/darwin/2.95.2/g++/streambuf.h:36,
from /…
Can you post a copy of the file? I could give it a shot. What system calls are you making. It sounds like you might need to link with the system framework or something.
Well, I actually don't have the files it's referring to. I don't even have a /sys/ directory within that g++ directory. So for some reason I'm missing files. This is very strange i…
Quote:
Originally posted by Ekim Neems:
<STRONG>Well, I actually don't have the files it's referring to. I don't even have a /sys/ directory within that g++ direct…
I know what he meant.
What I'm saying is that the error I'm getting makes sense... those header files it's searching for don't exist -- I had a problem installing Fink (the pkg do…
Based on an idea that someone emailed me the other day, as well as thread that was started in the Suggestions/Comments forum, I've been thinking about creating an Apple Developer C…
Being a select developer, I'd think that it would be very cool. However, there's no possibility to check for NDA-email addresses I know of. Maybe you should talk about it with some…
While I think your idea is good and such a forum is needed, I doubt Apple will permit it to exist here. Allowing "secret" company information to exist on someone else's server is …
I'm having trouble getting the CodeWarrior MetroNubX debugger to execute under 4K29.
When launched, for a fraction of second the Dock makes space for MetroNubX's icon, but then it…
Quote:
Originally posted by michaelb:
(Needless to say, I'm the sort of programmer who becomes very unproductive without a GUI debugger to step through code.)
... …
Except that it DOESN'T ON ILLEGALLY OBTAINED PRIVATE INTERNAL RELEASES OF OS X. If you want it to work, don't use 4K29. Simple. Either go back to the PB or wait until the final. Co…