diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-15 18:51:04 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-15 18:51:04 -0400 |
| commit | 823397cf5526a61d6b3a19bb16ab0b2c3da7f95e (patch) | |
| tree | 79797c0fb0c17d64d6e399d3da848f92f72ce3fe /new/darwin/uipriv_darwin.h | |
| parent | 518a5ddbf15d50a254c732a80d5907ef8878abe0 (diff) | |
Moved the uipriv_*.h files to the respective folders. The ui_*.h files stay up here; they'll be moved to IDLs later.
Diffstat (limited to 'new/darwin/uipriv_darwin.h')
| -rw-r--r-- | new/darwin/uipriv_darwin.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/new/darwin/uipriv_darwin.h b/new/darwin/uipriv_darwin.h new file mode 100644 index 0000000..36de1f1 --- /dev/null +++ b/new/darwin/uipriv_darwin.h @@ -0,0 +1,40 @@ +// 6 january 2015 +#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_7 +#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7 +#import <Cocoa/Cocoa.h> +#import "../uipriv.h" +#import "../ui_darwin.h" + +#define toNSString(str) [NSString stringWithUTF8String:(str)] +#define fromNSString(str) [(str) UTF8String] + +#define uiLogObjCClassAllocations \ ++ (id)alloc \ +{ \ + id thing; \ + thing = [super alloc]; \ + if (options.debugLogAllocations) \ + fprintf(stderr, "%p alloc %s\n", thing, [[self className] UTF8String]); \ + return thing; \ +} \ +- (void)dealloc \ +{ \ + [super dealloc]; \ + if (options.debugLogAllocations) \ + fprintf(stderr, "%p free\n", self); \ +} + +// init_darwin.m +extern NSView *destroyedControlsView; + +// util_darwin.m +extern void setStandardControlFont(NSControl *); +extern void disableAutocorrect(NSTextView *); + +// These are based on measurements from Interface Builder. +// These seem to be based on Auto Layout constants, but I don't see an API that exposes these... +#define macXMargin 20 +#define macYMargin 20 + +// entry_darwin.m +extern void finishNewTextField(NSTextField *, BOOL); |
