galaxas0
bfb50217b2
Oops. Color change!
2012-09-26 00:26:11 -07:00
Aditya Nrusimha
c5315011cf
Removed overflow ellipsis option (for now!)
2012-09-26 00:14:46 -07:00
Aditya Nrusimha
590716b166
Merge upstream changes
2012-09-24 17:19:12 -07:00
Aditya Nrusimha
0d5ddc2b05
More style changes!
2012-09-24 17:13:25 -07:00
Aditya Nrusimha
2a5efb42e8
Secure Text Field support. (No new classes, either!)
2012-09-22 18:24:21 -07:00
Aditya Nrusimha
87c72b90c9
Removed redundant text drawing code.
2012-09-22 17:34:37 -07:00
Aditya Nrusimha
b03ad59ce4
Fixed property/synthesize issues.
2012-09-22 17:01:38 -07:00
galaxas0
e5c3d9777c
Added const qualifier.
2012-09-19 18:56:50 -07:00
galaxas0
3c8c045d0b
Changed notification style again. (Part 2).
2012-09-19 18:07:21 -07:00
Aditya Nrusimha
a7ac8cf767
Changed notification style.
2012-09-19 18:00:23 -07:00
Aditya Nrusimha
25d1e47e00
Allow refusal of first responder and add context menu + Google Search to text renderer and view.
2012-09-18 16:47:13 -07:00
Aditya Nrusimha
b645fbbe87
Custom text selection color.
2012-09-18 16:42:20 -07:00
Aditya Nrusimha
107c1476e2
Added optional overflow ellipses to TUITextRenderer and customizable cursor color.
2012-09-18 16:41:38 -07:00
Aditya Nrusimha
cd025826be
Removed textfield rounded mask and fixed TUITextRenderer notifications.
2012-09-18 16:41:29 -07:00
Aditya Nrusimha
1f45a4b32f
TUITextRenderer responder notifications.
2012-09-18 16:41:16 -07:00
Justin Spahr-Summers
6c0d74f92a
Remove unused imports
2012-08-10 21:52:20 -07:00
Justin Spahr-Summers
ce1fef3530
Refactoring to change uses of TUIColor to NSColor
2012-07-27 16:15:19 -07:00
Justin Spahr-Summers
7231b63c77
Refactored code to use NSFont instead of TUIFont
2012-07-24 18:32:15 -07:00
Justin Spahr-Summers
df66d4a55a
Remove TUIKit.h import from TUITextRenderer.m
2012-07-23 12:32:22 -07:00
Justin Spahr-Summers
9f1d9f38b7
Remove ABActiveRange import from TUITextRenderer.h
2012-07-23 12:14:04 -07:00
joshaber
a8670dcd20
allow the attributed string's text to be updated
2012-05-31 15:22:23 -04:00
joshaber
33588842d3
more ARC fixes
2012-04-09 14:48:54 -04:00
joshaber
8bd71fb704
Merge remote-tracking branch 'upstream/master' into dev
...
Conflicts:
TwUI.xcodeproj/project.pbxproj
lib/Support/CoreText+Additions.m
lib/UIKit/TUIAttributedString.m
lib/UIKit/TUIControl.m
lib/UIKit/TUINSView.h
lib/UIKit/TUINSView.m
lib/UIKit/TUINSWindow.m
lib/UIKit/TUITableView.m
lib/UIKit/TUITableViewCell.m
lib/UIKit/TUITextRenderer.m
lib/UIKit/TUITextView.m
lib/UIKit/TUIView.m
2012-04-09 14:48:41 -04:00
Adam Roben
91f47e26fe
Plug a leak in -[TUITextRenderer sizeConstrainedToWidth:numberOfLines:]
...
The Clang Static Analyzer spotted the leak and Instruments confirmed it.
2012-03-21 14:48:29 -04:00
joshaber
4904215ec1
extract the selection drawing into its own method for easier customization and subclassing
2012-02-06 21:38:05 -05:00
joshaber
0b16e61fa9
set the frame using the accessor so that it reset the CTFrame
2012-01-27 23:01:36 -05:00
joshaber
63149dd09e
don't bother saving and restoring the old path and frame
2012-01-23 22:18:45 -05:00
joshaber
df551d4c00
added a method for getting a string's size when constrained to a set number of lines
2012-01-11 16:46:50 -05:00
joshaber
e5f2bc0091
reset the frame at each call to build the frame
2011-11-18 18:13:38 -08:00
Justin Spahr-Summers
fac056b03c
ARC migration, baby.
...
Conflicts:
TwUI.xcodeproj/project.pbxproj
2011-11-12 17:44:11 -08:00
Justin Spahr-Summers
bfac7a2231
Fix ARC precheck warnings in TUITextRenderer
2011-11-12 17:43:39 -08:00
joshaber
4636d25e97
centralized the line rect caching
2011-11-10 10:54:24 -08:00
joshaber
12ee960f00
cache line rects since they're so fucking expensive to calculate
2011-11-09 15:32:47 -08:00
joshaber
c9184c8377
fixed a bug in the vertical positioning property
2011-10-07 17:24:05 -07:00
joshaber
4ff7c8d218
keep the old path and frame around and restore them once we're done
2011-09-27 15:52:01 -07:00
joshaber
2f577d8617
added support for setting a vertical alignment on TUITextRenderer
2011-08-22 17:34:07 -04:00
joshaber
628ade3941
separate framesetter creation from frame and path creation
2011-08-22 15:24:17 -04:00
joshaber
582119f029
a much smarter -[TUITextRenderer sizeConstrainedToWidth:]
...
Previously we'd call -[NSAttributedString ab_sizeConstrainedToSize:]
which would just use the -size method on a temporary text renderer.
Seems silly to do all that since we ourselves are a text renderer.
2011-08-19 00:30:05 -04:00
joshaber
e00ad1ed50
added block support to attributed strings
2011-08-02 10:09:08 -07:00
joshaber
c540652e87
added the backgroundDrawingEnabled property and disabled backgrounds while masking to the drag selection
2011-07-10 17:18:05 -07:00
joshaber
7dc690e8bb
draw the attributed string's background colors and added a method to grab the text renderer's height constrained to a width
2011-07-08 12:48:41 -07:00
Loren Brichter
2a704ca1fb
TwUI 0.1
2011-07-01 14:18:11 -04:00