How can I get gcc NOT to search /System/Library/Frameworks/foo.framework/Headers when I say #include <foo/gargle.h>?
-nostdinc doesn't do it.
It seems that the prep…
If you want to include gargle.h in a directory foo in the directory in which the c source file containing the #include directive, you'd want to use
#include "foo/gargle.h"
When y…
Yeah, but there are political reasons it's difficult for me to change the source. In "normal" (i.e., all other) compilers, the -I command line option inserts the specified director…
Could anyone point me to a tutorial/howto/example of building a contexual menu addon that can interact with the dock?
BTW what is the preffered language of OSX as far as programmin…
Java and Objective C are the preferred, and for that matter only languages for programming OSX at any level above the console. Given your familiarity with OO languages and C, I wh…
Oops! I completely forgot about Carbon. I guess it's pretty clear what my feelings towards the new API are now. I guess that adds C and C++ to the list of viable choices. I sti…
I downloaded the Dev Tools (in omniweb), opened the archive with OpenUp, then let installer.app do its thing (I was logged in as root btw).
While running the installer, it said th…
I think I've read about this over in the OS X Developer forum. Be sure to poke around there.
I'm going to move this over to the Mac OS X Developer forum. Click through to find y…
Can't find any info on Apple's website about pricing for last year's WWDC. Maybe I'm not looking hard enough but would someone please just give me a general idea as far as how much…
Can someone explain why the mv command won't move directories on OS X PB?
In every un*x I've used you can use mv dir1 dir2, but not osx!
How are you meant to do this?
It works for me... what error are you getting?
/Users/lcampbel/tmp> mkdir foo
/Users/lcampbel/tmp> ls -l
total 0
drwxr-xr-x 2 lcampbel staff 24 Nov 9 16:55 foo/
…
Quote:
Originally posted by aquapaul:
Can someone explain why the mv command won't move directories on OS X PB?
In every un*x I've used you can use mv dir1 dir2, but no…
Hmmm. Well that *should* work, but my mv (/bin/mv) only supports the -f -i switches.
mkdir foo; mv foo bar -- that works.
mkdir foo; vi foo/file.txt (enter text); mv foo bar -…
It's not just you. I too have run into this problem and didn't know what to think of it until now. I'm assuming it's caused by files that have resource forks since it worked when…
Quote:
Originally posted by aquapaul:
Hmmm. Well that *should* work, but my mv (/bin/mv) only supports the -f -i switches.
Yeah, my bad. I was confusing cp and rm …
For some reason when I try to declare an array of 234,936 strings in C++ on OS X I get a seg fault. When i do it in Linux it works fine. Why is it doing this? Is there some way …
Quote:
Originally posted by nonhuman:
<STRONG>For some reason when I try to declare an array of 234,936 strings in C++ on OS X I get a seg fault. When i do it in …
Ok, stupid question: How do you declare an array dynamically? Is it
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><…
string* dictionary = new string[size];
did that not work?
if you don't have to use a bare array (if this isn't homework or something), i'd suggest an stl container. std::vector o…
Well do you remember it? That unbelievably simple graphing tool for OS 7 or whatever it was. Well, it still runs in classic, but it would kick major booty if there was a program li…
Yeah, I miss CricketGraph. If you need basic graphs, Excel v.X should be fine. I use Deltagraph (mostly for scientific data and EPS output) but have to boot into OS 9...
Excel for Mac OSX does a pretty full range of graphs these days including log scales and a whole bunch of curve fitting trendlines. I used to use Cricket Graph years ago.
If you w…