Commit Graph

17 Commits

Author SHA1 Message Date
Argyrios Kyrtzidis
345564380c Rename 'ibaction/iboutlet' attributes to 'IBAction/IBOutlet'.
Swift SVN r10953
2013-12-07 00:14:51 +00:00
Dave Abrahams
7ab9d369aa [stdlib] Rename Char => UnicodeScalar
Swift SVN r10864
2013-12-05 17:30:37 +00:00
Dave Abrahams
b1ac7ba7a4 [docs] Fix all ReST/Sphinx warnings, turn sphinx warnings into errors
Also revert r10607, which this change obsoletes

Swift SVN r10611
2013-11-20 23:27:13 +00:00
Dmitri Hrybenko
81dc5deee8 Change 'def' keyword back to 'func'
Swift SVN r10522
2013-11-17 07:45:28 +00:00
Dmitri Hrybenko
91ce21666d Change 'func' keyword to 'def'
I tried hard find all references to 'func' in documentation, comments and
diagnostics, but I am sure that I missed a few.  If you find something, please
let me know.

rdar://15346654


Swift SVN r9886
2013-11-02 01:00:42 +00:00
Joe Groff
3d4c1251f1 Rename 'byref' attribute to 'inout'.
Swift SVN r8661
2013-09-25 20:56:52 +00:00
Ted Kremenek
8f5b8ccb02 Rename "This" to "Self" and "this" to "self".
This was not likely an error-free change.  Where you see problems
please correct them.  This went through a fairly tedious audit
before committing, but comments might have been changed incorrectly,
not changed at all, etc.

Swift SVN r7631
2013-08-27 21:58:27 +00:00
Dave Abrahams
dc7ab3e57a Clean up remaining ReST errors in our documentation
Swift SVN r6025
2013-07-05 22:52:12 +00:00
Dave Abrahams
30d9e8821f *.rst: Use litre.TestsAreMissing exceptions
to avoid long processing times and reams of error messages for as-yet-untested files

Swift SVN r4508
2013-03-28 13:45:11 +00:00
Jordan Rose
427be94945 Add the [iboutlet] and [ibaction] attributes.
Currently only used for parsing. The immediate intent of these attributes is
to have them behave like [objc] for the purpose of emitting method
implementations; however, they are semantically distinct and should only be
used to expose outlets and actions to Interface Builder.

Swift SVN r3416
2012-12-08 00:16:03 +00:00
Jordan Rose
273642d0ce Document the [objc], [IBOutlet], and [IBAction] attributes.
IBOutlet and IBAction are used by Xcode to support XIB editing, but moreover
there is not an /inherent/ requirement that they imply [objc]. For [IBAction],
it seems unlikely that this will ever change, but [IBOutlet] already tries
several different ways to make its connection, and moreover with outlets for
which we can see the declaration, *the type of the object is known,*, and IB
could in theory know to use the Swift entry points.

IBOutlet and IBAction are currently recognized; my plan is to make them both
alias [objc] internally for now.

Swift SVN r3317
2012-11-30 20:04:28 +00:00
Jordan Rose
5695162bed Record the decisions made at Monday's meeting about ObjC Interoperability.
Most notably, every Swift object will be id-compatible and have an isa.
Swift classes that do not inherit from an Objective-C class will be marked
unavailable in an Objective-C source file, but their instances can be
referred to by protocol ('id <NSApplicationDelegate>') or by plain 'id'.

I've updated some of the "Use Cases" with some "guidelines" that would
eventually make their way into, say, DevPubs articles (a long way down
the line).

Swift SVN r3092
2012-10-30 18:55:18 +00:00
Jordan Rose
57a4f497f6 Docs: add a "Tradeoffs" section to Objective-C Interoperability.
The new section is supposed to discuss the different models for various
pieces of infrastructure (messaging, methods, classes, subclassing, and
overriding) -- basically, how much of Swift is exposed to Objective-C.
I think the big issue right now is actually what I've labeled the
Messaging Model: whether arbitrary Swift-objects are id-compatible. That
basically has repercussions everywhere else.

This doc is kind of a mess right now, I know.

Swift SVN r3072
2012-10-27 00:53:57 +00:00
Jordan Rose
5961515668 Update "use cases" in Objective-C Interoperability
Swift SVN r3071
2012-10-27 00:53:56 +00:00
Jordan Rose
6e4b614d9a Add very basic use cases to ObjC interop doc.
Swift SVN r3039
2012-10-23 01:42:51 +00:00
Jordan Rose
7c4030beb5 Finish my sentences.
Swift SVN r3030
2012-10-19 22:47:33 +00:00
Jordan Rose
e6b0a86777 Add a doc tracking what we need for Objective-C interoperability.
Swift SVN r3029
2012-10-19 22:46:23 +00:00