daboe01 and GitHub
08c666a53f
Merge pull request #3097 from cappuccino/remove-unused-local-variable-charCode
...
removed: unused local variable charCode
2024-10-07 19:44:13 +02:00
daboe01 and GitHub
03195b66bc
removed: unused local variable charCode
2024-09-21 19:12:18 +02:00
daboe01
b638242e6f
added documentation to the copy paste limitation
2024-08-04 15:15:34 +02:00
daboe01 and Martin Carlberg
89c0ab405a
Fixed: å and Å did not work well on scandinavian keyboards in CPTextView ( #3031 )
2022-04-04 10:23:17 +02:00
Martin Carlberg
edfba15d6f
Merge branch 'master' into node
2022-03-21 15:55:08 +01:00
daboe01 and GitHub
22dc587a8f
Fixed: caret was blinking in non-editable text in CPTextView ( #3022 )
2022-03-21 13:00:40 +01:00
Alfred Wärnsäter
2ecea40fdc
lots of Node fixes
2021-08-19 10:56:13 +02:00
cacaodev and GitHub
c8cdda0c18
Merge pull request #2962 from mrcarlberg/cptextview_more_ib_options
...
Fixed: CPTextView now handles more options from Interface Builder
2021-03-07 08:48:50 +01:00
Martin Carlberg
f74fed5ee0
Fixed: CPTextView now handles more options from Interface Builder
...
The new options are:
1. Resizable Horizontally
2. Resizable Vertically
3. Max Size
Also two options from the Text Container is recognized:
1. Tracks text view width
2. Tracks text view height
The last two are needed to allow the text view to recalculate
the size of its content if the frame size is changed.
2020-12-16 11:29:11 +01:00
Martin Carlberg
9f923941a8
Fixed: Prevent crash when _exposedRect is nil
2020-12-14 12:47:34 +01:00
Martin Carlberg and GitHub
7dc77ed609
Fixed: Make sure we handle undefined when testing for nil values ( #2862 )
2020-01-31 13:43:58 +01:00
daboe01 and Martin Carlberg
9e289574ff
Fixed: attachment support was missing in CPTextView ( #2872 )
2019-12-19 09:08:33 +01:00
jasperdeb and Martin Carlberg
58c08cebd7
Fixed: Added underline support in CPTextView ( #2875 )
2019-12-06 09:12:31 +01:00
daboe01 and Martin Carlberg
1a7ced34a7
Fixed: smart copy/paste cycle was leaving an additional whitespace on the LHS ( #2776 )
2019-06-13 16:17:52 +02:00
Alexandre Wilhelm and GitHub
6853c4c212
Merge pull request #2779 from daboe01/textview-contextmenu
...
New: support contextmenus for CPTextView
2019-03-29 15:06:39 -07:00
daniel
828788b643
Fixed: Mismatched parameter types in CPTextView
...
isBlinking had return type void, but returned a BOOL, and the method name implies that it returns a BOOL.
Some parameters were marked as integer, so were changed to int to coincide with most other names for integers.
setString had parameter type id, despite implying that parameter was a string, and the super class parameter being a string.
2019-03-28 13:21:34 -07:00
daboe01
686aa457d6
fixed: cut/copy did not autoenable
2018-10-07 21:22:37 +02:00
daboe01
1b1431f0d0
menu cleanup
2018-10-07 21:08:31 +02:00
daboe01
cbcb46597d
fixed: syntax errors
2018-10-06 23:19:50 +02:00
daboe01
6644c85978
new: context menu support for CPTextView
2018-10-06 23:16:46 +02:00
daboe01 and Martin Carlberg
a178d43b01
Fixed: return key was not swallowed by textview but triggered the default button. ( #2598 )
2018-08-20 12:52:53 +02:00
daboe01 and Martin Carlberg
535f981739
Fixed: TextView bindings wrote data on blur even when not editable ( #2582 )
2018-04-12 09:25:12 +02:00
bedalton and Martin Carlberg
314e64d7b1
Formatting: add semi-colon to CPTextView.j ( #2676 )
2018-04-09 12:40:11 +02:00
Alexandre Wilhelm and GitHub
77eb6b358f
Merge pull request #2626 from daboe01/fix-cptextview-backspace-issue
...
fixed: backspace did not trigger scrolling properly 927d6d2
2018-04-08 11:37:19 -07:00
daboe01
927d6d2fc6
fixed: backspace did not trigger scrolling properly
2018-04-05 21:36:32 +02:00
daniel
47594c9b07
Formatting: add missing coma and semi-colons to CPTextField
2018-04-04 09:10:52 -07:00
Martin Carlberg
9f25743b4d
Fixed: Never send CPTextViewDidChangeTypingAttributes notification when selection the same selection again. This is how Cocoa works.
2018-01-09 13:41:34 +01:00
Martin Carlberg
f1c76f65cf
Fixed: Added some comments on some methods
2018-01-09 13:37:35 +01:00
Martin Carlberg
2b7be2e3f1
Fixed: Make sure the delegate methods and notifications are handled in the same way as in the Cooca frameworks.
...
CPTextViewDidChangeSelectionNotification should not be send if the text view is empty.
CPTextDidBeginEditingNotification is send when an edit is started.
CPTextDidEndEditingNotification is send when an edit is ending.
textShouldBeginEditing: delegate method is called to allow control if edit should start.
textShouldEndEditing: delegate method is called to allow control if edit should end.
2018-01-08 13:56:24 +01:00
Martin Carlberg
1ee9a3f279
Fixed: Check if the correct delegate method is implemented before calling it
2018-01-08 13:47:45 +01:00
Martin Carlberg
679acfb239
Fixed: Register the delegate as an observer on any notification that the delegate implement.
...
Also make sure we remove the observers if for example the view does not have a superview. This will make sure that the Notification Center is not hanging on to the view and delegate if the view is not used any more. Can cause a memory leak.
2018-01-08 13:44:47 +01:00
Martin Carlberg
3c7ab4b49b
Fixed: Make the view aware of some more delegate methods
2018-01-08 13:20:03 +01:00
Martin Carlberg
3f062e1c0a
Fixed: Make all method in CPTextDelegate and CPTextViewDelegate protocol optional.
2018-01-08 13:15:31 +01:00
Martin Carlberg and GitHub
25dc38b2b1
Merge pull request #2558 from daboe01/smartcopypastefixes
...
Fixed: smart copy/paste did not work properly [+1]
2017-09-08 09:09:26 +02:00
Alexandre Wilhelm and GitHub
cd223be88a
Merge pull request #2557 from daboe01/placeholderselectablefix
...
fixed: cursor blinks for placeholder
2017-09-07 18:21:12 -07:00
daboe01
63815eb5c2
fixed: onpaste handler used window.event (non-standard)
...
broke paste on FF/win
2017-09-07 19:19:19 +02:00
daboe01
72d96e9a3b
fixed: smart pasting did not work properly
2017-08-29 15:11:29 +02:00
daboe01
9faac05666
fixed: cursor blinks for placeholder
2017-08-23 23:07:42 +02:00
Martin Carlberg and GitHub
12ed42e163
Merge pull request #2505 from HTPC-Schrauber/fix-RegEx
...
Fixed: RegEx for gcc > 4.9
2017-01-16 12:36:57 +01:00
daboe01
ace1332ca5
fixed: semipredicate issue caused typingAttributes being overwritten by placeholder attibutes
2016-12-28 23:16:03 +01:00
daboe01
baa313e8f8
fixed: insertion point was wrong sometimes when dragging beyond last character
2016-12-26 23:30:23 +01:00
daboe01
3d9aa24f3c
formatting
2016-12-26 23:18:24 +01:00
daboe01
c287d457d6
formatting
2016-12-26 22:14:12 +01:00
daboe01
7537b27a58
fixed: pboad types were wrong when unarchiving from cib
2016-12-26 22:11:11 +01:00
daboe01
1f560c92fc
fixed: dragging pasteboard was not respecting rich vs. plain
2016-12-26 21:49:36 +01:00
daboe01
74cd11c763
minor cleanup
2016-12-26 14:50:33 +01:00
daboe01
ee7d89331b
fixed: selection dragging was broken by changes to insertText
2016-12-26 12:50:16 +01:00
daboe01
5b51077823
fixed: changing the selection was possible despite isSelectable returning NO
2016-12-26 12:35:23 +01:00
daboe01
d2f94d1945
formatting
2016-12-26 11:53:49 +01:00
daboe01
2b893d0ea1
fixed: placeholder string was not supported in textview bindings
2016-12-26 11:47:33 +01:00