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

return character on os X — #2

The Cocoa and BSD APIs use the UNIX convention, a bare linefeed only -- chr(10). I think this is the most typical case you'll find on the system, at least at the lower levels. I'…
MacNN Software by lindberg

return character on os X — #3

FYI. In Java, you can inspect the line.separator environment variable to determine the return character(s) of the host operating system. Use this to avoid hard-coding a certain con…
MacNN Software by honeydew

return character on os X — #4

In this day of networks and files of relatively unknown origin (PC, Mac, *nix) shouldn't we write software that doesn't make assumptions about what line break characters are used? …
MacNN Software by clarkgoble

Writing Services — #2

I think you're looking at quite a daunting task, but I'll give you a short answer. Only Cocoa (ObjC or Java) programs can use services. Services are possible because of Cocoa's OO-…
MacNN Development by starfleetX

Applescript for automating file copy — #3

Alternatively, you could write a shell script and have cron run it every other night. You could use "scp" to transfer the file (unless it has resource forks, then I think it has to…
MacNN Software by Xeo

Pluggable Applications — #2

I too am trying to do this, and what I've determined is that bundles are used for this functionality. You can put the object code in a bundle and load the bundle dynamically. Eac…
MacNN Development by LordJavac

Pluggable Applications — #3

There are two basic ways to do it. One is to define a generic class for plugin makers to extend by subclassing, much like how the NSView architecture in Cocoa itself works. Another…
MacNN Development by Rickster

The Gimp Compilation Error? — #2

There is actually a fink users list for discussion of these problems. But to me it looks like you have installed Tenon's Xtools, which installs a bogus /usr/local/include/malloc.h …
MacNN Software by Angus_D

Which tech career is good??? — #2

Quote: Originally posted by NeoMac: Programming? Web application development? Databasing? Networking? System admin? etc..? Well, I've done most of these at one t…
MacNN Networking

Which tech career is good??? — #3

Agreed, it seriously depends on her personality. Is she good at seeing the whole picture, making creative leaps, and quickly understanding new ideas? If so, go for programming or…
MacNN Networking

Which tech career is good??? — #4

I've also done most of these things at some time and I would agree with the others here. Being a sys admin gives you job security but can be hell in that you often have to force yo…
MacNN Networking

Readin a stacktrace — #2

Hmm... that looks like a stack trace of native code, and you probably want a Java stack trace. Have you set your executable target in Project Builder to use the Jav debugger instea…
MacNN Troubleshooting by Rickster

Readin a stacktrace — #3

Quote: Originally posted by Rickster: <STRONG>Hmm... that looks like a stack trace of native code, and you probably want a Java stack trace. Have you set your exec…
MacNN Troubleshooting by Ghoser777

Readin a stacktrace — #4

This must be a very serious problem, cause it even crashes the java debugger! And I just found out that using the QT API's likes to make my interface totally unresponsive. How ca…
MacNN Troubleshooting by Ghoser777

Ouch: build failed! — #2

The interesting lines are a bit further up, but probably got lost under all the jam crap.
MacNN Development by Angus_D

Ouch: build failed! — #3

Do these mean anything? warning: <CocoaMed>CocoaMed.app depends on itself ...updating 10 target(s)... BuildPhase CocoaMed.app Completed phase <CopyHeaders&am…
MacNN Development by kman42

Ouch: build failed! — #4

Well, I figured it out. Those two definitions of reference were because I unintentionally did this: #import "reference.m" instead of: #import "reference.h" kman
MacNN Development by kman42

Standard C Libraries in OS X Dev Tools — #2

Try /usr/include. Most non-framework stuff can be found by rooting around in there. (If you want to use the finder to navigate instead of the terminal, you can type "open /usr/incl…
MacNN Development by aleph_null

Standard C Libraries in OS X Dev Tools — #3

Thank you aleph_null, you are a great help. I look around at /usr/include and sure enough stdio.h and others are there. I created an empty project, write a hello world C program …
MacNN Development by Luuthan

Applescript and Shell Script Question — #2

Ok....so I've set up some shell scripts and they work ok. Now I want to make them pretty by attaching a GUI via Applescript. I've done this nicely with one line UNIX commands which…
MacNN Development by BostonMACOSX

Applescript and Shell Script Question — #3

in the current version of AppleScript, the do shell script command only works for non-interactive programs (i.e. ones that run, print something, and exit; not ones which run contin…
MacNN Development by Rickster

Applescript and Shell Script Question — #4

Quote: Originally posted by BostonMACOSX: <STRONG>Ok....so I've set up some shell scripts and they work ok. Now I want to make them pretty by attaching a GUI via A…
MacNN Development by Synotic

Applescript and Shell Script Question — #5

one thing you can do if expect is installed on the system is write an expect script to interact with your shell scripts. Then you can use studio as a front end to write a text fil…
MacNN Development by Michael A. Peters
mp.ls