Back to index

texmacs  1.0.7.15
Classes | Functions | Variables
mac_app.mm File Reference
#include "mac_app.h"
#include "Cocoa/mac_cocoa.h"
#include "mac_utilities.h"
#include "url.hpp"
#include "converter.hpp"
#include "../Scheme/scheme.hpp"

Go to the source code of this file.

Classes

class  TMAppDelegate

Functions

static string from_nsstring (NSString *s)
void init_mac_application ()
void finalize_mac_application ()
void process_mac_events ()

Variables

NSAutoreleasePool * pool = nil
TMAppDelegatedelegate = nil

Function Documentation

Definition at line 53 of file mac_app.mm.

{  
  mac_end_remote ();

  [pool release];
  [NSApp setDelegate:nil];
  [delegate release];
}

Here is the call graph for this function:

Here is the caller graph for this function:

static string from_nsstring ( NSString *  s) [static]

Definition at line 19 of file mac_app.mm.

                            {
  const char *cstr = [s cStringUsingEncoding:NSUTF8StringEncoding];
  return utf8_to_cork(string((char*)cstr));
}

Here is the call graph for this function:

Definition at line 42 of file mac_app.mm.

{
  [NSApplication sharedApplication];
  pool = [[NSAutoreleasePool alloc] init]; 
  delegate = [[TMAppDelegate alloc] init];
  [NSApp setDelegate: delegate];
  [NSApp finishLaunching];
  
  mac_begin_remote ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 62 of file mac_app.mm.

{
  do {
    [pool release];
    pool = [[NSAutoreleasePool alloc] init];
    
    NSEvent *event =
    //[NSDate distantFuture][NSApp
     nextEventMatchingMask:NSAnyEventMask
     untilDate:nil 
     inMode:NSDefaultRunLoopMode
     dequeue:YES];
    
    if (!event) break;
    [NSApp sendEvent:event];
    [NSApp updateWindows];
  } while (true);
  
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 40 of file mac_app.mm.

NSAutoreleasePool* pool = nil

Definition at line 39 of file mac_app.mm.