Sergey Bugaev
9ad4487bb7
Unimplement support for NSBackingStoreType-s other than .buffered
...
See darlinghq/darling#369
2018-05-16 00:16:33 +03:00
Sergey Bugaev
be69fd6035
Fix comparison
2018-05-16 00:09:38 +03:00
Sergey Bugaev
ea3bfb0c84
Fix forgetting to save the new frame on move/resize
2018-05-15 19:28:33 +03:00
Sergey Bugaev
0a95aee94c
Fix moving/resizing windows
...
There's no need to additionally convert the coordinates as [platformWindow frame] already
returns them the way the delegate expects (the Cocoa way).
2018-05-15 19:25:48 +03:00
Sergey Bugaev
0c38286816
Implement [NSIBUserDefinedRuntimeAttributesConnector encodeWithCoder:]
2018-05-15 19:24:55 +03:00
Sergey Bugaev
90bb321877
Fix not copying an array when we should have
2018-05-15 19:24:31 +03:00
Sergey Bugaev
df89ba023e
Properly support non-trivial key paths in NSIBUserDefinedRuntimeAttributesConnector
2018-05-15 19:23:49 +03:00
Sergey Bugaev
760788bbc0
Fix connecting outlets
2018-05-12 22:14:29 +03:00
Sergey Bugaev
ca0a2d2ab7
Implement NSIBUserDefinedRuntimeAttributesConnector
2018-05-12 22:13:37 +03:00
Andrew Hyatt
7942379f04
Syntax modernizations
2018-01-16 21:24:43 -08:00
Sergey Bugaev
5352e472c9
Tweak the graphics style to make it look more modern
2018-01-12 22:25:56 +03:00
Sergey Bugaev
e0cbc2b843
Tweak the colors
...
In the future, these colors will be determined by the current theme.
2018-01-12 18:27:27 +03:00
Sergey Bugaev
96ce92979c
Fix FC font matching
2018-01-12 18:26:54 +03:00
Sergey Bugaev
52cdf986a3
Change the hardcoded default font from Arial to San Francisco
...
In the future, the theme will define these fonts.
2018-01-12 18:23:59 +03:00
Sergey Bugaev
f20ffb8c31
ifndef out font substitution, fontconfig does it for us on Linux
2018-01-12 18:19:30 +03:00
Sergey Bugaev
dad8e35523
Fix a few more missing NSUInteger's in NSMenu.subproj
2018-01-07 01:24:52 +03:00
Andrew Hyatt
b39f2db0f1
Use version A instead of C for CoreText
...
macOS doesn't do this and it isn't clear why Cocotron decided to.
2018-01-02 18:40:00 -08:00
Sergey Bugaev
df2d0ad36b
Fix X11/FreeType font rendering
...
Port some code from O2Context_builtin_gdi
2018-01-02 22:57:42 +03:00
Sergey Bugaev
cbfcc189c3
Fix [[ alloc] init]
2018-01-01 23:33:38 +03:00
Andrew Hyatt
71a3529ac6
Set proper QuartzCore version
2017-12-30 22:46:07 -08:00
Andrew Hyatt
131ed3ac59
Fix CoreGraphics compilation
2017-12-30 19:15:08 -08:00
Andrew Hyatt
bffdf45663
Revert "Build QuartzCore"
...
This reverts commit ac81f937b5
.
2017-12-30 19:15:08 -08:00
Andrew Hyatt
26f2df326f
Revert "Build CoreGraphics against Darling OpenGL"
...
This reverts commit 4eb608760f
.
2017-12-30 19:15:08 -08:00
Andrew Hyatt
030ce8b04c
Revert "Partially switch to Darling OpenGL"
...
This reverts commit f36224e648
.
2017-12-30 19:15:08 -08:00
Andrew Hyatt
36bdd4ec2f
Partially switch to Darling OpenGL
...
This is untested and may break things
The long term goal is have Darling OpenGL.framework
deal with interfacing with Linux OpenGL instead of AppKit.
2017-12-30 19:15:08 -08:00
Andrew Hyatt
6cedc4fcaf
Build CoreGraphics against Darling OpenGL
2017-12-30 19:15:08 -08:00
Andrew Hyatt
ed34575b90
Build QuartzCore
2017-12-30 19:15:08 -08:00
Andrew Hyatt
cbe148c0c5
Delete Cocotron ApplicationServices stub
2017-12-30 19:15:08 -08:00
Andrew Hyatt
5543614af9
Delete Cocotron CoreFoundation
...
This will reduce confusion since we don't use it
2017-12-30 19:15:08 -08:00
Andrew Hyatt
7a61defee9
Remove CoreVideo from Cocotron
...
It was basically a stub anyway
2017-12-30 19:15:08 -08:00
Sergey Bugaev
d4879dbace
Fix -[NSButtonCell attributedTitle] segfaulting when title is nil
2017-12-28 22:52:10 +03:00
Andrew Hyatt
518d86db0b
Remove Quartz from Cocotron
2017-12-22 11:49:30 -08:00
Andrew Hyatt
3d97bcba67
Delete Cocotron Carbon
...
Cocotron's Carbon is just an empty header. This commit deletes it.
We are going to need to make our own Carbon, no reason to make
a new project in the Cocotron directory.
2017-12-22 11:20:00 -08:00
Sergey Bugaev
348fdf7813
Fix direct isa access
2017-12-17 16:11:05 +03:00
Sergey Bugaev
1b6a0270fa
One more NSInteger
2017-12-17 15:41:49 +03:00
Sergey Bugaev
d7675f05a5
Don't crash when calling [NSTextStorage new]
...
Actually, the callers should call [[NSTextStorage] initWithString: @""], but it's easier for us
to implement the extra init.
2017-12-17 15:41:49 +03:00
Sergey Bugaev
b674c51dd5
Build O2Font_FT in Onyx2D and make sure it gets used instead of the dummy O2Font_ttf
2017-12-17 15:41:48 +03:00
Sergey Bugaev
f9d0726316
Fix one more missing NSUInteger
2017-12-16 03:39:08 +03:00
Sergey Bugaev
da07334af3
Fix incorrect usage of unsigned
and int
in place of NSUInteger/NSInteger's.
...
On x64, NSInteger is 8 bytes long while `int` is only 4. This causes problems when ex. NSNotFound
is cast to an int and then compared to itself.
There probably are many more places the integer types are used the wrong way, and this is likely to
cause us more headache later.
2017-12-15 02:10:27 +03:00
Andrew Hyatt
571ec1d0eb
Add some missing APIs
...
This is all in order to get TextEdit to build
2017-08-23 11:27:50 -07:00
Andrew Hyatt
a23df37eff
Remove execution bit from source files of AppKit
2017-08-23 09:25:24 -07:00
Andrew Hyatt
b2a54b1871
Revert "Link to CF using the new way"
...
This reverts commit a8364108d4
.
2017-08-22 12:20:24 -07:00
Andrew Hyatt
9d961ca637
Set CoreGraphics dylib compat and current versions
2017-08-13 00:07:16 -07:00
Andrew Hyatt
e27ab46970
Use previous linking method
2017-08-10 23:36:55 -07:00
Andrew Hyatt
a8364108d4
Link to CF using the new way
2017-08-10 17:46:00 -07:00
Andrew Hyatt
2799b5befc
Set dylib versions
2017-08-08 13:03:19 -07:00
Andrew Hyatt
a665684447
Build Cocoa
2017-08-08 12:57:18 -07:00
Andrew Hyatt
1c81808e25
Create include directories
2017-08-07 23:33:12 -07:00
Sergey Bugaev
5c69ad493d
Fix Debian build
2017-07-24 00:38:29 +03:00
Sergey Bugaev
0e8e8c38da
AppKit fully building and linking
2017-07-22 13:00:20 +03:00