Commit Graph
65 Commits
Author SHA1 Message Date
Justin Spahr-Summers 9f21fa714f Claer TUINSView.trackingView when it's deallocated 2012-10-31 11:45:26 -07:00
Aditya Nrusimha 19fc9e0d02 Fixed imports and casting. 2012-10-15 11:23:20 -07:00
Aditya Nrusimha e95fe45699 Used ancestorScrollView instead. 2012-10-08 20:28:10 -07:00
Aditya Nrusimha ed02a8e208 Fixed enclosingScrollView. 2012-10-07 20:56:35 -07:00
Aditya Nrusimha a3499195e9 Style changes and -enclosingScrollView 2012-10-06 18:54:26 -07:00
Aditya Nrusimha ab85eac965 Fixed CA_COLOR_OVERLAY_DEBUG. Silly if statement. 2012-09-30 17:08:21 -07:00
Aditya Nrusimha 826784afad Added an example for dragging the window by a view. 2012-09-24 16:54:12 -07:00
Aditya Nrusimha 585f55c152 Fixed dragHandler synthesis.
Added a manual @synthesize just to be sure.
2012-09-24 16:50:33 -07:00
Aditya Nrusimha ed6f1bfb1c Replaced windowHasFocus with NSWindow notifications. 2012-09-24 16:46:10 -07:00
Aditya Nrusimha 2388fa43d5 Added windowHasFocus property and text view hides cursor when window does not have focus. 2012-09-18 16:37:09 -07:00
Justin Spahr-Summers 383c8ba298 Propagate -ancestorDidLayout when hidden changes 2012-09-07 14:02:08 -07:00
Justin Spahr-Summers 6c0d74f92a Remove unused imports 2012-08-10 21:52:20 -07:00
Justin Spahr-Summers 049f703dec Merge branch 'master' into remove-tuicolor
Conflicts:
	lib/UIKit/TUIKit.h
2012-07-31 10:06:22 -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 95ddd91b1d Protect against -displayLayer: unexpectedly being invoked on a background thread (observed in a background run loop on 10.6.8) 2012-07-27 13:40:45 -07:00
Justin Spahr-Summers 79aab6a724 Merge branch 'master' into remove-tuiimage 2012-07-25 08:48:59 -07:00
Justin Spahr-Summers 5207f1749c Before invoking -drawRect:, clear the dirty rect only _after_ setting the layer scale, not before (duh) 2012-07-24 23:50:43 -07:00
Justin Spahr-Summers 163f7c96ef Refactored TUIView to use NSImage 2012-07-24 17:09:40 -07:00
Justin Spahr-Summers 6ae2f1a2db Merge branch 'master' into imports-cleanup
Conflicts:
	lib/UIKit/TUIView.m
2012-07-24 09:06:05 -07:00
Josh Abernathy 19ae557379 Merge pull request #21 from github/remove-tuiview-macros
Remove TUIView.m macros
2012-07-24 07:47:34 -07:00
Justin Spahr-Summers 3daab94eca Replace PRE_ADDSUBVIEW and POST_ADDSUBVIEW with a private method that takes a block to execute between that code 2012-07-23 14:59:35 -07:00
Justin Spahr-Summers 8aba942607 Remove PRE_DRAW and POST_DRAW macros, and move CA_COLOR_OVERLAY_DEBUG to the top of TUIView.m 2012-07-23 14:51:57 -07:00
Justin Spahr-Summers 7845e34a4e Remove TUIKit.h import from TUIView.m 2012-07-23 12:32:22 -07:00
Justin Spahr-Summers 845d729fa2 Remove TUIColor import from TUIView.h 2012-07-23 12:16:47 -07:00
Justin Spahr-Summers c92a38bbf7 Remove TUIKit.h import from TUIView.m (including it only makes for more painful compilation), and sort remaining imports 2012-07-19 15:17:21 -07:00
Justin Spahr-Summers b327bae787 Merge branch 'dev' into AppKitBridging
Conflicts:
	TwUI.xcodeproj/project.pbxproj
	lib/UIKit/TUIView.m
2012-07-18 23:22:24 -07:00
Aditya Nrusimha 8b8c231fe6 Tons and tons of fixes/aesthetic updates. 2012-07-18 22:40:44 -07:00
Aditya Nrusimha 200342da12 Added layout constraints.
Now with value transformers and blocks! (Imagine what you could do with
a sin :D)
2012-07-18 16:25:57 -07:00
Justin Spahr-Summers 2c26c9f068 Invoke -ancestorDidLayout at the correct points 2012-07-18 01:10:55 -07:00
Justin Spahr-Summers af528b2c19 Make sure to invoke <TUIBridgedView> view hierarchy change methods 2012-07-18 00:53:34 -07:00
Justin Spahr-Summers eec601a0c1 Treat TUIView (Private) as a class extension instead, and move all its implementations into TUIView.m 2012-07-17 17:11:59 -07:00
Justin Spahr-Summers df38eb2ead Added -[TUIView ancestorSharedWithView:] 2012-07-17 16:43:46 -07:00
Loren Brichter 494435e002 no need for workaround, static analyzer decided to quiet down, fix clock@2x path 2012-06-19 11:01:49 -04:00
Loren Brichter 790d850137 First stab at retina-aware TUIImage. Make TUIImage/imageNamed: lazy, will reload different variants if needed when drawing based on the current scale factor of the destination context. Track the scale factor of the current destination context with a thread-specific global (so drawsInBackground works), set in TUIView/displayLayer. 2012-06-19 09:01:09 -04:00
joshaber 5911067ed3 format string fixes 2012-06-12 18:42:19 -07:00
joshaber b52b89781e nil out our layer's delegate when we're dealloc'd 2012-05-08 16:01:35 -04:00
Danny Greg 149d6fcf61 Fix subview ordering when inserting subviews rather than simply adding them. 2012-04-11 08:58:00 +01: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
joshaber 1e6362a136 update the layer's scale when the screen changes 2012-04-09 10:54:44 -04:00
joshaber fcb1553040 -[CALayer contentsScale] is 10.7+ 2012-04-06 16:08:07 -04:00
joshaber 2b6966ce09 -[NSWindow backingScaleFactor] is 10.7+ so guard our uses of it 2012-04-06 10:01:39 -04:00
joshaber 0940950dae real HiDPI support 2012-04-05 23:07:36 -04:00
joshaber 68a68b99b7 added needsDisplayWhenWindowsKeyednessChanges to TUIView 2012-03-14 17:11:56 -04:00
joshaber ed86289e1a nil out the NSView when it's dealloc'd 2012-02-22 22:52:27 -05:00
joshaber d92f278046 always nil out the unsafe nsView pointer 2012-02-22 18:34:37 -05:00
joshaber cb9491c645 clear out the text renders after getting rid of the subviews
that way the text renderer's responder chain gets cleaned up before
they're gone
2011-12-19 12:00:41 -05:00
Justin Spahr-Summers dba3430a29 Remove -[NSArray tui_map:], which is no longer used (and we have blocks now, if we want to do it properly) 2011-11-12 17:46:36 -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 4df382daaa Refactor how TUIView handles subviews, for better memory management practices and ARC compatibility 2011-11-12 17:43:39 -08:00