From 963feb6c0668b3c64242607fe71f458420a91f32 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 13 Apr 2015 12:53:05 -0400 Subject: Converted and fixed the Mac OS X code for uiParent. I'm still not happy, but this is DEFINITELY a step in the right direction... Perhaps automatic deletion is a pipe dream :/ I should also really nail the parenting/unparenting logic, but for that I need to add one more method. --- new/uipriv_darwin.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'new/uipriv_darwin.h') diff --git a/new/uipriv_darwin.h b/new/uipriv_darwin.h index bcdc691..8516e9a 100644 --- a/new/uipriv_darwin.h +++ b/new/uipriv_darwin.h @@ -31,13 +31,10 @@ extern NSView *destroyedControlsView; extern void setStandardControlFont(NSControl *); extern void disableAutocorrect(NSTextView *); -// container_darwin.m -@interface uiContainer : NSView -@property uiControl *uiChild; -- (void)uiUpdateNow; -- (BOOL)uiMargined; -- (void)uiSetMargined:(BOOL)margined; -@end +// 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); -- cgit v1.2.3