Commit Graph

273 Commits (4b10899bc88b32b51af0eda5609ad6388fac6fc8)

Author SHA1 Message Date
Doug Coleman 4b10899bc8 Merge remote-tracking branch 'origin/master' into modern-harvey3 2018-08-28 21:03:46 -05:00
Doug Coleman d4729bdde2 cocoa.messages: Add a Cocoa union type to import NSData.
Fixes bootstrap for macOS 10.14 for the error:
```
no-objc-type
name "("
```

Fixes #2059.
2018-08-27 21:03:04 -05:00
Doug Coleman f05c7e8cd8 factor: char: a -> ch'a.
Also all contractions are not allowed in word names anymore. Even Data cannot use contractions...
2018-08-09 18:02:38 -04:00
Doug Coleman 00fb574a8d factor: SYMBOL: foo foo [ bar ] initialize -> INITIALIZED-SYMBOL: foo [ bar ] 2018-08-04 21:53:05 -04:00
Doug Coleman 924b434336 Revert "factor: vocab:word -> vocab::word"
This reverts commit 354f1cbd34.
2018-08-02 08:21:52 -04:00
Doug Coleman 7730fc5c64 Merge remote-tracking branch 'origin/master' into modern-harvey2 2018-08-02 07:57:42 -04:00
Doug Coleman f4ac9fcfca cocoa.messages: fix docs.. 2018-07-07 11:16:23 -05:00
Doug Coleman 79db3ca594 docs: fix docs for help-lint 2018-07-07 08:24:20 -05:00
Doug Coleman 2c7a579ecd cocoa: Update. 2018-03-23 17:59:10 -05:00
Doug Coleman 4c164b1ae6 factor: change some spacing with ; on its own line 2018-03-19 00:03:27 -05:00
Doug Coleman 6bed1364f2 factor: update syntax. 2018-03-18 23:14:46 -05:00
Doug Coleman da19b780b1 factor: all-paths [ ] rewrite-paths 2018-03-18 23:09:46 -05:00
Doug Coleman ddfe23ccca Merge branch 'master' into modern-harvey2 2018-03-15 11:48:24 -05:00
John Benediktsson d259d7ccec cocoa: cleanup ?-> syntax and implementation. 2018-03-13 13:21:21 -07:00
John Benediktsson 5e18e609b3 cocoa: change ?-> to always cache stubs in syntax word. 2018-03-13 11:57:40 -07:00
John Benediktsson 1bffdff33a cocoa.touchbar: another experiment for the 10.11 build machine.
NSButton.buttonWithTitle:target:action: is 10.12 and later.
2018-03-13 11:29:16 -07:00
John Benediktsson a4f6d43645 Revert "cocoa.touchbar: quick hack to experiment with 1t 0.11 build problem"
This reverts commit 9fbddec50e.
2018-03-13 11:06:43 -07:00
John Benediktsson 268dfecb0b cocoa.messages: fix for ".cxx_destruct" selector name. 2018-03-13 10:38:33 -07:00
John Benediktsson 365584a644 cocoa.messages: bind classname.methodname selectors also.
We currently have a problem which is all selectors are assumed to have
the same method effect.  The problem is we can have method collisions,
for example:

NSObject.load is { void { id SEL } }
NSBundle.load is { char { id SEL } }

So, this inferred wrong:

IN: scratchpad [ NSBundle -> mainBundle -> load ] infer .
( -- )

But now we can do this instead:

IN: scratchpad [ NSBundle -> NSBundle.mainBundle -> NSBundle.load ] infer .
( -- x )

It doesn't really fix the original problem, but its a way to workaround
it and added ``method-collisions`` to report on the conflicts.
2018-03-13 10:17:33 -07:00
John Benediktsson 9fbddec50e cocoa.touchbar: quick hack to experiment with 10.11 build problem 2018-03-12 09:38:05 -07:00
Doug Coleman 6338e5308d Merge branch 'modern-harvey2' of factorcode.org:/git/factor into modern-harvey2 2018-02-16 21:24:55 -06:00
Doug Coleman ddcd6b2af0 Merge remote-tracking branch 'origin/master' into modern-harvey2 2018-02-10 11:18:18 -06:00
John Benediktsson f0347b71cf Revert "cocoa.touchbar: try this."
This reverts commit f976d97983.
2018-01-28 11:23:31 -08:00
Doug Coleman de247bf0fa cocoa: METHOD: -> COCOA-METHOD: for now. 2018-01-28 09:15:33 -06:00
Doug Coleman 06dd84bc69 cocoa: update syntax 2018-01-27 10:38:35 -06:00
Doug Coleman 5d8b912216 Merge remote-tracking branch 'origin/master' into modern-harvey2 2018-01-27 09:43:21 -06:00
John Benediktsson f976d97983 cocoa.touchbar: try this. 2018-01-26 16:48:12 -08:00
Doug Coleman f5853bda82 Merge remote-tracking branch 'origin/master' into modern-harvey2 2018-01-17 17:38:39 -06:00
John Benediktsson 07f4d19947 cocoa.touchbar: use arrays of strings instead of enums. 2018-01-01 16:00:19 -08:00
Doug Coleman 354f1cbd34 factor: vocab:word -> vocab::word 2017-12-29 00:43:25 -08:00
Doug Coleman a35dd209c3 modern: basis works with vocabs>identifiers
basis-vocabs [ dup . flush vocab>identifiers ] map
2017-12-24 19:16:13 -08:00
Doug Coleman b9e2b14cf0 modern: fix FOO>bar to \FOO>bar 2017-10-27 20:24:37 -05:00
Doug Coleman 5fb483099f cocoa: Prefer ``send: foo`` or ``send: \foo:`` instead of ``send\ foo:`` 2017-08-31 21:21:14 -05:00
Doug Coleman 3aa096e2e5 docs: Update docs. 2017-08-31 21:21:14 -05:00
Doug Coleman 9fc62092a4 factor: SEL: to selector\ postpone: \foo 2017-08-31 21:21:13 -05:00
Doug Coleman 54ef674a99 cocoa: -> to send\ ?-> to ?send\ SUPER-> to super\ 2017-08-31 21:21:13 -05:00
Doug Coleman 147ae66ab5 factor: SYNTAX: \foo 2017-08-31 21:21:13 -05:00
Doug Coleman c436f6dbad factor: char: postpone: color: hexcolor: flexhexcolor: decimal: 2017-08-31 21:21:13 -05:00
Doug Coleman 84e40810cd factor: CHAR: : -> CHAR: \:, same for [{( 2017-08-31 21:21:12 -05:00
Doug Coleman 8a6094229d cocoa.apple-script: Make APPLESCRIPT: take a string. 2017-08-05 22:33:47 -05:00
Doug Coleman 7d47def4c9 cocoa: CLASS: ; -> <CLASS: ;CLASS>
<CLASS: is a container like <PRIVATE and <FUNCTOR:
2017-08-05 20:54:02 -05:00
Alexander Iljin 2ffa446f5b *-docs: replace double spaces with single spaces
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Doug Coleman e189954ecc core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ; 2017-06-02 11:57:05 -05:00
Doug Coleman d838f95370 cocoa: Allow ?-> syntax for methods that might not exist.
If a method doesn't exist we need to provide a signature so the stack is balanced. This should also allow deploying from macOS versions that do not contain methods to ones that do. This is an alternative to asking a class if it provides a selector.
2017-06-01 16:53:05 -05:00
Doug Coleman 5aa89e6251 factor: Add newlines to every line. 2017-06-01 13:46:32 -05:00
Doug Coleman dd22d6efa4 cocoa.touchbar: Add platforms file. 2017-05-30 18:14:39 -05:00
Doug Coleman a632337ba2 cocoa: Add basic support for TouchBar. 2017-05-30 15:33:48 -05:00
Doug Coleman f3ed43dc74 cocoa: Import more classes for TouchBar support. 2017-05-29 12:36:35 -05:00
John Benediktsson 68e7a69572 cocoa.dialogs: simple fix for split-path errors with empty string input. 2017-05-29 08:27:58 -07:00
John Benediktsson e826546c6d cocoa.messages: simplify (objc-class). 2017-02-11 20:58:25 -08:00