Ask a Question related to Mac Programming, Design and Development.
-
Eric Albert #1
Re: Porting code to Mac (part 2)
In article <3f359695$1_1@news.iprimus.com.au>,
"Stephen Fraser" <fraserq1@iprimus.com.au> wrote:
close, which is defined in <unistd.h>. (How'd you find out about open> 1) The original source code contains a line like this ... int handle =
> open(filename, O_RDONLY);
> which opens a binary file for reading. Everything needed for that is
> defined in fcntl.h, However I can't find a way to close close the file
> once I'm finished with it.
without hearing about close?)
The BSD way of doing that is with glob, defined in <glob.h>. There are> 2) How can I search a folder for files matching a specific specification?
> The windows code searches for files using a filespec like "*.TXT", or
> "LEVEL??.DAT".
other ways, too.
Extension mapping is controlled via the Info.plist file in your> 3) The Windows application registers itself as the application used to
> access .OSF files. So, whenever you'd double click
> on a file with an .OSF extension, it would load up the application and use
> it to process the file. Is it possible to do this on the Mac from within
> the code? (I actually need to change the file registration data during
> run-time).
application's package. There's no standard way to change this at
run-time, particularly if you want the change to take effect
immediately. What are you really trying to accomplish by doing this?
If you can explain that a bit better, we can probably give you a more
appropriate way to solve the problem.
-Eric
--
Eric Albert [email]ejalbert@stanford.edu[/email]
[url]http://rescomp.stanford.edu/~ejalbert/[/url]
Eric Albert Guest
-
Getting Started Tutorial, Part 6 - coldfusion code
Hi, I have got to part 6 of this getting started tutorial, I have carried out the instructions, everything has worked up until this section. I have... -
Sample Whidbey Web Part Code
Can anyone point me to some examples of Whidbey Web Parts being designed from scratch. The documentation on this is still blank (eg.... -
Article : Code Access Security Part - 1 (.Net FrameWork Tools Series)
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its... -
How to write/send documents to PDF from code?Brain fried part II
>If PDFWriter is discontinued..then what is used to convert files to PDF in code?? What sort of file? There are three basic approaches to... -
Porting code to Mac
Hi, I've encountered a few problems porting some Windows code over to the Mac, and I'm wonderring if someone could help me with one or more of these...



Reply With Quote

