Skip to main content
Search titles, bodies, and author names
Found 67,500 posts across 1 forum.

Basic ObjC Question — #2

I'm pretty new to objc myself, but try this. - (NSString *)getPage: (int)pageNumber { return [[[myArray objectAtIndex: (pageNumber -1)] copy] autorelease]; } This returns a poin…
MacNN Hardware

Aqua and Xlib — #1

Can't Apple create a fake libX11 that allows an X-Window aplication to draw to Aqua? That would let Apple claim thousands of native applications overnight.
MacNN Software

Aqua and Xlib — #2

yeah, ok, add that to Apple's list of 2.48937e+24 things to do. Seriously though, I think most would be happier with faster performance of current features. Apple's main priorities…
MacNN Software

Aqua and Xlib — #3

Quote: Originally posted by Angus_D: Does anybody have any idea how long it would take to port an X11 app to Cocoa, just out of interest? Depends on whether there's…
MacNN Software

source — #1

So can I compile anything from its source and have it run on OSX? Sorry, I guess thats a stupid question. Anything that runs from a command line? 2. Does anyone know of a compil…
MacNN Troubleshooting

source — #2

Uhm... Not exactly. Some stuff works, some stuff needs some work, and some stuff needs a lot of work. It's all to do with incompatibilities and niggles and stuff in OS X/Darwin. So…
MacNN Troubleshooting

source — #3

As Angus stated, not exactly. Most well written CLI based software should compile with little to no modification. By well written, I mean written with portability in mind. It s…
MacNN Troubleshooting

source — #4

Thanks guys, I suspected as much. In regards to the Star Office question, i'm sure it will be plastered everywhere we go when an osx binary is available. Take care..............
MacNN Troubleshooting

Preventing search of Frameworks headers — #1

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…
MacNN Development

Preventing search of Frameworks headers — #2

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…
MacNN Development

Preventing search of Frameworks headers — #3

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…
MacNN Development

Contexual menu (how to?) — #1

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…
MacNN Development

Contexual menu (how to?) — #2

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…
MacNN Development

Contexual menu (how to?) — #3

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…
MacNN Development

Help - Dev Tools Install error — #1

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…
MacNN Software

Help - Dev Tools Install error — #2

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…
MacNN Software

WWDC 2000 Prices? — #1

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…
MacNN Software

mv directories? — #1

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?
MacNN Troubleshooting

mv directories? — #2

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/ …
MacNN Troubleshooting

mv directories? — #3

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…
MacNN Troubleshooting

mv directories? — #4

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 -…
MacNN Troubleshooting

mv directories? — #5

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…
MacNN Troubleshooting

mv directories? — #6

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 …
MacNN Troubleshooting

Large Arrays in C++? — #1

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 …
MacNN Troubleshooting by nonhuman
mp.ls