Search results

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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>...
  6. 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 )...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. K

    File paths and fopen()

    Question... I am writing a program (C++, Carbon, Codewarrior 8, OS X) and I am having difficulty understanding how to handle macintosh paths. The following code should generate a full file name that can be opened by the fopen() command (ansi C), but it does not work. the first argument...
  13. K

    Creating a splash screen

    Is it possible to create a window in Carbon that has absolutely no title bar on it? For example, a spash screen that has no window controls attached to it (and say it only goes away if you click on it or press a key). Is it possible and if so, any advice on how to do it would be greatly...
  14. K

    Borderless and titleless windowin carbon...

    How can I remove everything from a window except it's drawing surface (in carbon)? I would like to have my program create windows which contain QuickTime movies, but have the windows completely borderless with no title bar. The window should also stay on top of any other window in the...
  15. K

    Anyone using Codewarrior 8 Win/Mac?

    Is anyone out there using Codewarrior 8 Pro in Windows to compile for a Mac target? Anyone? Konan
  16. K

    Anybody using Codewarrior 8 and OpenGL

    I am using Codewarrior 8 for Windows/Mac and I would like to use OpenGL for Carbon. I downloaded an SDK from Apple, but I suspect that it is not compatible with CW8 because it did not link properly (or I did something wrong). Can anyone let me know exacult which SDK I should use for...
  17. K

    How can I manipulate a "View" oir window in Cocoa?

    Here is what I want to do... I want to grab a window that was created in my program (Cocoa) and manipulate it. The only hitch is that I want to grab the window by it's text caption, and without any knowledge of how the window was originally created. In Windows, I would do something like this...
  18. K

    Playing and recoding audio files...

    Are there any cocoa and or carbon routines for high level multimedia manipulation, like the ability to record and playback audio files. For example, in windows there is a "Media Control Interface" (MCI) which allows the programmer access to these features via simple string commands like...
  19. K

    How does one disable OpenGL acceleration for apps?

    If I needed to turn off the OpenGL acceleration in OS X, how would I do this? My system doesn't actually support OpenGL acceleration (Purple iMac), but I would like to know how this is done in any case. Screen shots would be really helpful as well :) Konan
  20. K

    OpenGL acceleration

    Is there any way (any way at all) to force an OpenGL program to run in software mode? I would like to have this option if the user's OpenGL video card is not working properly with my program. On the PC version of my software, several OpenGl video cards crap out while they do not in software...
Back
Top