Thread: Macintosh Cocoa Question

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    21

    Question Macintosh Cocoa Question

    I'm currently trying to program an application that when the Start button is pushed, will start a different part of the application, return(so as not to show the twirling color wheel, and to allow communication with the program), and have that function still running, and allowing it to use the UI for output. The problem is that when you call a function from ObjC and Cocoa, it doesn't return until the function returns, which then makes the program "freeze up". I thought about calling a function in the initial "After the NIB has loaded" code, but that presents the same problem. And to make it worse, any C++ function that you call doesn't allow you to output to the UI because the ObjC pointers to the NSTextView are out of scope. Any advice on this? You can see what I am talking about at The Virtual Body Website at SourceForge.com.
    Last edited by OSDever; 05-06-2005 at 03:28 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  2. HTTP Server Through Router Question
    By Tommaso in forum Tech Board
    Replies: 3
    Last Post: 12-26-2003, 01:42 AM
  3. Macintosh API
    By ug52wxj in forum C Programming
    Replies: 1
    Last Post: 10-02-2003, 10:31 AM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM