Commit Graph

186 Commits (fe952b2f8e4f595af6f838756e6f35993677b568)

Author SHA1 Message Date
John Benediktsson fe952b2f8e cocoa.messages: add super-sender for completeness. 2013-03-29 14:45:41 -07:00
John Benediktsson fe1bfe173b ui.backend.cocoa.views: simplify and add os version check. 2013-03-29 14:29:41 -07:00
John Benediktsson 886cf4df07 cocoa.messages: some support for runtime message sending. 2013-03-29 14:18:57 -07:00
John Benediktsson 64822a7a30 cocoa.messages: use ERROR:. 2013-03-29 14:18:57 -07:00
Doug Coleman 8012f60829 cococa.messages: Rename selector. 2013-03-23 16:54:55 -07:00
John Benediktsson 4e72d80256 Using "same?" in more places. 2012-07-21 10:22:44 -07:00
John Benediktsson 559b5bfa5b using the new H{ } make. 2012-07-19 09:50:09 -07:00
Doug Coleman e490331dd8 cocoa.plists: Remove duplicate using. 2012-06-22 13:47:17 -07:00
John Benediktsson ba663e2fd5 cocoa.plists: import cocoa to fix bootstrap issue. 2012-04-16 12:06:42 -07:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman e435a7aa59 cocoa.messages: Apply mrjbq's patch to show the name of the cooca function in sender stubs. rename 'method' in stack effects to 'signature' since we are passing an array with the return value and arguments, not the method. 2011-11-21 16:38:16 -08:00
John Benediktsson 80e1c8e3f2 Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed. 2011-10-18 13:19:39 -07:00
Doug Coleman 76580da5d5 Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183.
Fixes #209.
2011-09-29 11:28:28 -07:00
John Benediktsson 4f42c72012 specialized-arrays: performed some cleanup.
Specifically,
    •   Created >c-array to be replacement for >T-array.
    •   Created cast-array to be generic replacement for all T-array-cast words.
    •   Created c-array@ to be generic replacement for T-array@ words.
    •   Replaced usages of <T-array> with T <c-array>
    •   Replaced usages of <direct-T-array> with T <c-direct-array>
    •   Replaced usages of >T-array with T >c-array
    •   Replaced usages of T-array-cast with T cast-array
    •   Replaced usages of malloc-T-array with T malloc-array.
    •   Removed malloc-T-array.
    •   Removed T-array-cast.
    •   Removed T-array@.
    •   Removed >T-array.

I also added (but didn't change any code to use):
    •   T c-array-type, returns T-array
    •   T c-array?, returns T-array?
    •   c-array{ T ... }, returns T-array{ ... }

Bootstraps just find on Mac OS X.  Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Joe Groff 9b23085c95 cocoa.runtime: remove bindings to obsolete objc runtime functions 2011-09-11 16:45:44 -07:00
Slava Pestov 4045eeca20 cocoa.subclassing: sometimes, compiled Cocoa method bodies would not be updated when words were redefined. Fixes #66 2011-08-28 22:56:58 -07:00
Slava Pestov f699714a16 cocoa: clean up tests 2011-08-28 22:20:39 -07:00
Slava Pestov 4aaab7af34 cocoa.plists: fix for recent change to cocoa binding: char* returns are now treated like void* and not like c-string 2011-08-28 22:19:50 -07:00
Joe Groff 9040ee37e0 Merge remote-tracking branch 'Blei/gtk-image-loader'
Conflicts:
	basis/alien/enums/enums-tests.factor
	basis/alien/enums/enums.factor
	basis/alien/parser/parser.factor
	basis/gdk/pixbuf/ffi/ffi.factor
	basis/glib/ffi/ffi.factor
	basis/tools/deploy/shaker/shaker.factor
	basis/ui/backend/gtk/gtk.factor
	basis/windows/nt/nt.factor
2011-08-27 14:07:18 -07:00
John Benediktsson 9f34c9c676 Spelling fixes to documentation. 2011-08-26 16:20:31 -07:00
Slava Pestov 74af9abf20 Update code for brave new world where alien.parser doesn't special-case void, and instead looks it up like any other word 2010-08-15 02:32:13 -07:00
Slava Pestov 168dd1f825 FFI rewrite part 7: compile callback bodies with the optimizing compiler 2010-07-28 00:49:26 -04:00
Philipp Brüschweiler d2530a4365 Merge remote branch 'origin/native-image-loader' into gtk-image-loader 2010-07-17 11:26:45 +02:00
Slava Pestov 446ee6896d alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary 2010-07-16 17:32:05 -04:00
Joe Groff e2237afd61 Merge branch 'master' of http://factorcode.org/git/factor into native-image-loader 2010-07-07 13:09:41 -07:00
Slava Pestov 425c572fa8 cocoa.subclassing: cleaner CLASS: syntax; ui.backend.cocoa: ignore events delivered after window closed to fix FEP (reported by Doug Coleman) 2010-07-06 19:02:52 -04:00
Slava Pestov bb4dae64f3 cocoa.subclassing: new METHOD: syntax cleans up class definitions 2010-07-06 17:59:35 -04:00
Slava Pestov bc87b269c5 Remove Cocoa exception handling support since it no longer works 2010-07-06 17:48:37 -04:00
Slava Pestov 1106c03318 Remove cocoa.callbacks since nothing uses it 2010-07-06 17:45:50 -04:00
Joe Groff e433b16b42 cocoa.messages: return cocoa char* values as void* instead of c-string 2010-06-27 12:42:14 -07:00
Joe Groff 05faf6919b new vocab images.cocoa: load image objects using native cocoa api 2010-06-27 12:29:21 -07:00
Slava Pestov 70a99e1cdb Updating code to use with-out-parameters 2010-05-23 03:07:47 -04:00
Slava Pestov 0cde5c8fb5 Eliminate compiler.alien 2010-05-11 23:24:47 -04:00
Erik Charlebois baab8c060d Remove ENUM: f and replace uses with CONSTANTs.
Fix bootstrap and load-all errors from enum classes.
2010-04-19 20:08:40 -07:00
Joe Groff 4bc915d526 C-ENUM: -> ENUM: 2010-04-19 20:07:16 -07:00
Slava Pestov 2b4a55b53a Merge branch 'master' of git://github.com/erikcharlebois/factor 2010-04-10 18:01:19 -07:00
Erik Charlebois 5768ae0af4 Forget to save some files for enum change 2010-04-10 00:12:59 -07:00
Joe Groff ef884ef7f2 Merge branch 'master' into abi-symbols 2010-04-01 15:28:36 -07:00
Joe Groff 65c3259761 "cdecl" -> cdecl 2010-03-31 19:20:35 -07:00
Slava Pestov 2b68f56c89 Document (free), move it out of libc.private and mention it in the "c-strings" help article (reported by Blei) 2010-03-30 17:32:51 -04:00
Joe Groff 191ac353fd generalize stack effects so we can bootstrap with the stricter stack effect checking 2010-03-08 23:38:10 -08:00
Joe Groff 2a3bf53af7 Merge branch 'master' of git://factorcode.org/git/factor 2010-02-23 23:53:51 -08:00
Slava Pestov fa6c8117aa cocoa.messages: cleanup 2010-02-24 20:18:48 +13:00
Joe Groff f6183703b2 ui: add a "system-alert" hook that can raise a system modal dialog without involving any potentially stripped gadget, io, or debugger code 2010-02-23 19:28:57 -08:00
Joe Groff 4cfa1a6c77 rename current string-mangling "char*" to "c-string". char* is now just a boring old pointer to char 2010-02-23 11:42:02 -08:00
Slava Pestov 1b508b9c37 cocoa.messages: fix 2010-02-22 13:17:46 +13:00
Slava Pestov 0da6f78088 cocoa.messages: if a class cannot be found, IMPORT: no longer fails at parse time. Instead, there will be a runtime error when the class word is executed 2010-02-21 22:27:32 +13:00
Slava Pestov c3f4bcb616 Fix load errors exposed by platforms.txt change 2010-02-20 13:31:09 +13:00
Slava Pestov 95bfc8a240 vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases 2010-02-20 13:30:49 +13:00
Slava Pestov bd0ca0e2aa Clean up some tags 2010-02-17 00:12:55 +13:00