mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-26 01:55:42 +00:00
Deploying to gh-pages from @ cappuccino/cappuccino@3282323053 🚀
This commit is contained in:
1 parent
dd79e85380
commit
edca5de121
6 files changed
+253
-151
No files matched your search
@@ -27,6 +27,7 @@
|
||||
@import <AppKit/AppKit.j>
|
||||
|
||||
@import "LoremIpsum.j"
|
||||
@import "TableExample.j"
|
||||
|
||||
|
||||
/*
|
||||
@@ -106,6 +107,24 @@ var DocumentWindowMinimumWidth = 360.0,
|
||||
[textView insertText:[LoremIpsum text]];
|
||||
}
|
||||
|
||||
/*!
|
||||
Inserts the sample document from TableExample at the text view's
|
||||
selection, replacing any selected text. The sample contains a table.
|
||||
|
||||
Like Insert Lorem Ipsum, the Edit menu item sends this action to First
|
||||
Responder, and the responder chain delivers it to the controller of the
|
||||
active document's window.
|
||||
|
||||
The sample is an attributed string, so insertText: keeps its fonts and
|
||||
its table, but only in a rich text view. A plain text view would keep
|
||||
only the characters, so the table needs rich text. Edit > Undo removes
|
||||
the inserted text, with the table.
|
||||
*/
|
||||
- (@action)insertTableExample:(id)aSender
|
||||
{
|
||||
[textView insertText:[TableExample attributedString]];
|
||||
}
|
||||
|
||||
/*!
|
||||
Keeps the window at or above its minimum size while the user resizes it.
|
||||
|
||||
|
||||
Reference in new issue
Block a user