Search results

  1. K

    Retrieving Memory Information...

    This would be great, however it has to be built into my software package. The logic will go like this... if (ratio of (available physical ram) to (total physical ram) is too low) Print Message ("Your system is low on RAM so this program will not perform optimally). This should...
  2. K

    Retrieving Memory Information...

    I discovered that I can use the command "top -l 1" in terminal to retrive this information, but I am having trouble doing this directly in my app. I tried... InFile = popen("top -l 1", "r"); if (InFile) bytesRead = fread(streamBuffer, sizeof(char), sizeof(streamBuffer), InFile)...
  3. K

    Retrieving Memory Information...

    I would like my program to be able to access memory information such as available physical ram, memory load, etc. This information is only being used to inform the user when they are consuming too much RAM and their system performance will be affected. With windows, I call the function...
  4. K

    Send email from app with attachment (Carbon)

    Using the carbon API (or a command line system call), what is the easiest way for my application to bring up the default email client and create an email with an address, subject, body and a file attachment assigned to it? The user would then press the "send" button to complete the transaction...
  5. K

    Compression Dialog Box for Quicktime movies

    My app is creating a quicktime movie, and I need a standard dialog box that allows the user to select the codec, etc. However, I cannot find any sample code on Apple's web site that illustrates how to do this. All of the examples have hard coded the codec and compression settings :( Can...
  6. K

    mkfifo and codewarrior

    I was aftraid that the solution would be that drastic. I have since decided to use the Scrap Manager to achieve simple interapplication communication. Thank you for your answer. Note: I cannot find any BSD related headers in my Codewarrior installation. Do I have to download the separately...
  7. K

    Inspecting windows from other applications

    Please forgive me if this is a stupid question... Is there any way for my carbon application to visit each window open (from all applcations) and get some information on that window, like it's title, or it, position. For example for each window open { get title get window...
  8. K

    mkfifo and codewarrior

    The following code gives me the error that mkfifo is an undefined identifier. Searching the Codewarrior folder, I could find no file that contained the text mkfifo. Does anybody know how to use mkfifo with Codewarrior 8 Pro? #include <iostream> #include <types.h> #include <sys/stat.h>...
  9. K

    Multiple threads...

    This appears to be great. I may not have to do the separate forks after all, but this will definately help if I do. Thanx, Konan
  10. K

    DLL file name

    In carbon, how can I get the full name (or FSSpec) to the DLL which is calling the function. For example, in windows, my plug-in does this to get the path... HMODULE Module = GetModuleHandle( "MyPlugin.DLL" // address of module name to return handle for )...
  11. K

    Multiple threads...

    Thanx man. Now, what is the easiest method of communicating between forks? What would be simplest way of sending a block of data between forks? Konan
  12. K

    Multiple threads...

    I am converting an application I wrote into a plug-in for another application. I used GLUT (OpenGL utility toolkit) to make my application (the one being converted into a plug-in). In the windows version, I was able to simply create another thread, and run my program in that thread, which...
  13. K

    Locating an other application's window in carbon...

    How can I locate a window from another application based on it's title (must be able to detect partial title)? Once I locate the window, how can I change it's title? Is it indeed possible for one carbon application to do this to another's window? WindowRef GetWindowByPartialTitle(char...
  14. K

    How to make a document "Open With" my app

    Now, how would I do that automatically through my application? I would prefer that the user not have to do that manually. Any suggestions? Konan
  15. K

    How to make a document "Open With" my app

    I have a creator code and have added the following bit to rez file... #include "Types.r" type 'xxxx' { pstring; }; resource 'xxxx' (0, "Owner Resource") { "Software© 2003" }; resource 'BNDL' (128, purgeable) { 'xxxx', 0, { } }; where 'xxxx' denotes my creator...
  16. K

    Carbon and "Warping Pointer"

    I am using Codewarrior 8 Pro and the carbon API, and for the life of my, I can't figure out how to have my code move the pointer from one place to another. I need this function, so the user can click on a 3D viewport, and drag the mouse as long as they want without hitting the edge of the...
  17. K

    How do I add an icon to my Codewarrior appl?

    BNDL you say? I'll search for it now. Thanks for the nudge in the right direction. BTW, I figured out that you can "paste" an icon in the general info window of the file. I'd still rather do it via the codewarrior 8 project. Thanks for the help, Konan
  18. K

    How do I add an icon to my Codewarrior appl?

    Oh yes, I already converted the graphic to an *.icns file. Konan
  19. K

    How do I add an icon to my Codewarrior appl?

    I created a program using Codewarrior 8 and I cannot for the life of me figure out how to change the default icon. I suspect that it has to be done through the resource files. How could I go about adding a custom icon to my appl? I would prefer to use a "*.r" text resource file rather than an...
  20. K

    File paths and fopen()

    I found out that I should call getcwd() to retreive the Mac friendly path. Dave
Back
Top