emperor: (Default)
emperor ([personal profile] emperor) wrote2003-11-25 03:17 pm

MacOS questions

[I hope [livejournal.com profile] jdev is reading :)]

I'm used to writing (C) code in emacs, and then running make. There's a lot of developer documentation for MacosX, but a lot of it seems to assume you're using Xcode.

So: what docs should I read if I want to know about (in order of need)
a) how to build a macos-app
b) where the CDROM headers are/ what the interface is like[1]
c) how to do network programming for OSX

...and should I just give up and use Xcode?

[1] I'm assuming ioctl, but...
ext_8103: (Default)

network programming for OSX

[identity profile] ewx.livejournal.com 2003-11-25 08:06 am (UTC)(link)
Surely the usual socket/connect/etc...?

Re: network programming for OSX

[identity profile] senji.livejournal.com 2003-11-25 08:11 am (UTC)(link)
*eww* *ick* *blech*
ext_8103: (Default)

Re: network programming for OSX

[identity profile] ewx.livejournal.com 2003-11-25 03:50 pm (UTC)(link)
I've no idea how you'd plumb an external device in like secnet needs. I'd have thought ordinary interface and route manipulation would be SIOCGIFCONF and friends though.

[identity profile] antinomy.livejournal.com 2003-11-25 08:13 am (UTC)(link)
Have you had a play with Xcode? You might even find you get on with it, and it might make your life easier...

[identity profile] arnhem.livejournal.com 2003-11-25 11:17 am (UTC)(link)
I think that avgtool may be a useful keyword to search with. Try
"avgtool help" in a terminal window.

[ this advice should come with a free pinch of salt ]

[identity profile] senji.livejournal.com 2003-11-25 03:21 pm (UTC)(link)
[ this advice should come with a free pinch of salt ]

More advice should, IMNSHO.
ext_243: (Default)

[identity profile] xlerb.livejournal.com 2003-11-25 11:05 am (UTC)(link)

a) how to build a macos-app

If you mean an actual .app bundle, one that you can double-click on and that will show up in the dock and use a GUI, you'll pretty much need Xcode, I believe. But see the xcodebuild(1) man page.

A command-line tool, however, can be built in the usual way, and can use frameworks with the -framework linker flag.

b) where the CDROM headers are/ what the interface is like[1]

I don't know too much about this... what are you trying to do with the CDROM? I'll note here the existence of the DiskArbitration framework, and of cddafs.

Observation, and note to self: cddafs uses the CDDB track titles that iTunes downloads. Yow.

c) how to do network programming for OSX

The same as for BSD, pretty much. I should also note the existence of the SystemConfiguration framework, which is built on the BSD interfaces and used by the GUI network configurator.