mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 05:07:54 -05:00
Make OakRunIOAlertPanel accessible from C++
I moved it to a C header. An alternative would be to put some #ifdef’s around the Objective-C stuff in OakAppKit.h, but with the standalone header, it’s clear that this is the only thing we need from OakAppKit.
This commit is contained in:
8
Frameworks/OakAppKit/src/IOAlertPanel.h
Normal file
8
Frameworks/OakAppKit/src/IOAlertPanel.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef IO_ALERT_PANEL_H_TGU0N94P
|
||||
#define IO_ALERT_PANEL_H_TGU0N94P
|
||||
|
||||
#include <oak/misc.h>
|
||||
|
||||
PUBLIC void OakRunIOAlertPanel (char const* format, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
#endif /* end of include guard: IO_ALERT_PANEL_H_TGU0N94P */
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "IOAlertPanel.h"
|
||||
#include <oak/misc.h>
|
||||
|
||||
PUBLIC extern NSString* const OakCursorDidHideNotification;
|
||||
|
||||
PUBLIC void OakRunIOAlertPanel (char const* format, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
PUBLIC BOOL OakIsAlternateKeyOrMouseEvent (NSUInteger flags = NSAlternateKeyMask, NSEvent* anEvent = [NSApp currentEvent]);
|
||||
|
||||
#if !defined(MAC_OS_X_VERSION_10_7) || (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7)
|
||||
|
||||
Reference in New Issue
Block a user