Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: facebookarchive/three20
...
head fork: verveguy/three20
compare: master
Checking mergeability… Don’t worry, you can still create the pull request.
Commits on Mar 30, 2009
Joakim Bodin Add swedish translation ec13569
@joehewitt joehewitt * Rudimentary support for rich text which performs very fast inside o…
…f tables and contain touchable links. The new HTML classes don't support HTML markup yet, only text containing URLs. This is very much a work-in-progress.

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
b2c1f9a
@joehewitt joehewitt * Remove some testing code
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
3cbd48a
@joehewitt joehewitt * Support bold in HTML text
* Clean up the HTML tests a bit

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
5d4e4fd
Commits on Mar 31, 2009
@joehewitt joehewitt * Renamed rich text classes from TTHTML* to TTStyledText*
* Cancel links when the user scrolls the table after touching down on a link
* Add a catalog sample for standalone TTStyledLabels

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
116b8aa
@joehewitt joehewitt * Remove some debug code that was slowing down the styled text sample
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
ac3c77a
@joehewitt joehewitt * Make TTSearchBar gray, not the toolbar color
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
c089315
Commits on Apr 01, 2009
@joehewitt joehewitt * Support basic HTML in styled labels
* Support inline images in styled labels
* Load URLs when links are touched in styled labels
* Improve performance of styled label layout

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
6fc1660
@joehewitt joehewitt * Support insets on styled lables (like CSS padding)
* Use a more Safari-like style for highlighted links in styled labels

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
1910f0a
@joehewitt joehewitt * Update the styled text documentation a bit
* Fix bug in hitTest for styled labels

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
6ee076f
@joehewitt joehewitt * Use content inset in the styled label sample
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
91a5bda
Commits on Apr 02, 2009
@dhou dhou added setValue:forHTTPHeaderField method to TTURLRequest for setting …
…custom request headers
6760c09
@joehewitt joehewitt * Accept gzip encoding for all url requests. Huge perf win for one li…
…ne of code!

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
cdb9dc8
@joehewitt joehewitt * New constructor for link style nodes
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
1b3413a
Commits on Apr 03, 2009
@dhou dhou Merge branch 'master' of git://github.com/joehewitt/three20 1192212
@dhou dhou Merge branch 'master' of git://github.com/joehewitt/three20 7b9cf22
Commits on Apr 05, 2009
@joehewitt joehewitt * Update YouTube embedded HTML to scale correctly
* Fix a leak and a crash with TTURLRequest delegates

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
dffbaaa
@joehewitt joehewitt * Fix bad assignment in TTMessageController setFields
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
7cda4b8
Commits on Apr 09, 2009
@joehewitt joehewitt * New vector rendering system
* Use vector rendering instead of bitmaps as often as possible
* New stylesheet system (still rudimentary)
* Support for styling spans of styled text
* New TTButton class with stylable states
* Set of common TTButton types
* Fix a bunch of memory leaks (found with Clang)
* While URL queue is suspended, don't resume queue after existing requests complete

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
93186c8
@joehewitt joehewitt * Fix bug in styled text layout
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
26087e4
@joehewitt joehewitt * Update the README with new instructions
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
7c67def
@joehewitt joehewitt * Replace TTAppearance with TTStyleSheet
* Centralize all styles in TTDefaultStyleSheet

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
8da4a01
@joehewitt joehewitt * Tweak the color tinting numbers a bit
* Fix a crash when popping some controllers

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
6021c39
@dhou dhou Merge branch 'master' of git://github.com/joehewitt/three20 82be2c9
@hboon hboon Fix orientation width/height so that device is assumed in portrait mo…
…de when device is facing up or facing down.

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
f4bb7a1
@amitsnyderman amitsnyderman Include image upload name to POST data
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
472e1ba
Jason Ting * Added dataSourceWithObjectsArray method to handle objects in an arr…
…ay (useful when creating a table from XML)

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
284d5b5
Commits on Apr 10, 2009
@dhou dhou Merge branch 'master' of git://github.com/joehewitt/three20 fe17419
Commits on Apr 11, 2009
@joehewitt joehewitt * Fix a freeze in TTMessageController when focusing the subject field
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
8eacafd
@joehewitt joehewitt * Add new data source constructors for convenience
* Rename "class name" to "selector" as it pertains to styles

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
1ca01a5
@joehewitt joehewitt * Fix black blob on tabs that have no icon
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
c6ef196
@joehewitt joehewitt * Render badges using the new style system
* Use the style box model to calculate the size of styled views
* Re-organized the xcode project a bit

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
bd73e7d
@joehewitt joehewitt * Correct explanation of how to use developer.h
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
f934dc1
@joehewitt joehewitt * Render tabs using the new style system instead of PNGs
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
46089c3
@joehewitt joehewitt * Render all button text using TTTextStyle
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
dbc6c76
@joehewitt joehewitt * Rename TTStyledLabel to TTStyledTextLabel
* Create new TTStyledLabel which uses the style system to render a text with a single style

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
1c6a6c0
@joehewitt joehewitt * Rename TTStyledView to TTView and TTStyledLabel to TTLabel
* Get rid of backgroundInset from TTView

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
8eac2e3
@joehewitt joehewitt * New tab grid control
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
ce6ef20
Commits on Apr 14, 2009
@joehewitt joehewitt * Support mask styles
* Improved drop shadow rendering
* Slight style changes to tabs

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
0c2e42f
@joehewitt joehewitt * mask.png file which should have been in previous commit
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
e8ccb1f
Commits on Apr 15, 2009
@joehewitt joehewitt * Fix build error
* Add more image and text style options

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
bd1cecc
Commits on Apr 16, 2009
@joehewitt joehewitt * Don't require style draw methods to return a BOOL (keeps it simpler)
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
8e6dbde
@joehewitt joehewitt * New: documents:// URLs
* Fixed: bundle:// URLs with more than three paths wouldn't load
* Improved: Replacement for imageNamed which releases cached images when memory is low

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
ef49393
@joehewitt joehewitt * A much simpler way to change navigation and status bar styles
* Fix some positioning issues with photo and thumb view controllers

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
cf81218
Commits on Apr 17, 2009
@sco sco Merge branch 'master' of git://github.com/houyr/three20 into houyr/ma…
…ster
3569cc1
Commits on Apr 18, 2009
@joehewitt joehewitt * Rename TTStyledTextTableView to TTTableView
* Move TTTableView to its own file
* Add support for cell menus to TTTableView
* New TTButtonBar class

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
25ff61e
@joehewitt joehewitt * Use the stylesheet for more fonts and colors
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
8ea21cd
@joehewitt joehewitt * Support line breaks and HTML <div>, <p> and <br> tags in styled text
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
03470df
@joehewitt joehewitt * Support for varying font sizes in styled text
* Proper baseline alignment of styled text
* Draw the background of block elements properly

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
d39554c
@joehewitt joehewitt * Properties for setting the subject and body of message controller
* Don't eat touch events sent to styled text labels

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
956c916
@joehewitt joehewitt * Fix freeze when typing in message controller and search bar and the…
…re are no results

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
05745ea
@joehewitt joehewitt * Merging a bunch of changes from dougbarth. Thanks, Doug!
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
b4075ca
Commits on Apr 19, 2009
@joehewitt joehewitt * Re-factor the style code a bit in preparation for new features
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
b9e020b
@joehewitt joehewitt * Draw the background of inline elements around the contents of the i…
…nline, rather than

  drawing a separate box around each separate node

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
34c5718
Commits on Apr 20, 2009
@joehewitt joehewitt * Support padding on inline elements
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
df87d60
@joehewitt joehewitt * Support padding on block elements
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
2996ce5
@joehewitt joehewitt * Support margins
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
6a98979
@joehewitt joehewitt * Chain frames together in a hierarchy rather than a single linked list
* Use the hierarchy for more accurate hit testing of nested frames

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
d35dc83
@sco sco add a setter for the TTURLRequest body property the body property, in…
… order to allow POSTing JSON bodies, etc.
d7c9785
Commits on Apr 23, 2009
@joehewitt joehewitt * Handle element highlighting in a generic way (not coupled to link n…
…odes as it was)

* Inherit text styles from parent nodes

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
a388867
@joehewitt joehewitt * Minor improvements to the styled text system
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
8c65d3c
@joehewitt joehewitt * First level of support for floats
* Ability to specify a fixed width or height for images
* Resolve common HTML entities in the XHTML parser

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
4978787
@joehewitt joehewitt * Support floats on elements as well as images
* Draw link highlights opaquely so overlapping lines don't double blend

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
6a45de7
Joakim Bodin Better swedish translation of error message 44eb5d3
Commits on Apr 25, 2009
@joehewitt joehewitt * Load image URLs in styled text and redraw after asynchronous load c…
…ompletes

* Draw images with clipping

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
769be11
@joehewitt joehewitt * Proper vertical alignment for text inside inline elements
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
b280ea1
@joehewitt joehewitt * Support absolute positioning
* Support styles on image nodes
* Add default image to image nodes

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
f45b3ed
Commits on Apr 26, 2009
@joehewitt joehewitt * Fix some bugs in absolute positioning and padding inside of inline …
…elements

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
9e21403
@joehewitt joehewitt * Function for searching node tree by class name
* Function for finding frame that represents a node
* Function for replacing one node with another
* String addition for checking if a string is pure whitespace

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
2ae3f1d
Commits on Apr 28, 2009
@dougbarth dougbarth Initialize view with field value. 68434cd
@dougbarth dougbarth Support for optional message. 4a19f7b
Commits on Apr 30, 2009
@dougbarth dougbarth Bug fix: message required check wrong.
The previous implementation used a bit-wise and,
resulting the message being marked as compliant
when it's length was odd (the zeroth bit's boolean
value).
69c487d
@dougbarth dougbarth WIP: Support for date fields with shared UIDatePicker. 65e5739
Commits on May 01, 2009
@joehewitt joehewitt * Speech bubble shape
* Put padding back on styled text table cells
* Localize a few strings that I had missed
* Fix crash in documents and bundle urls

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
2121f26
@joehewitt joehewitt * Respect all contentMode values when drawing images
* Patch from tbrannam to fix text drawing bug for long words

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
13c0fed
@joehewitt joehewitt * Avoid re-drawing styled text labels when touched, improving table s…
…crolling speed

* Don't unhighlight links after touches ended so they remain highlighted during navigation controller animation, then unhighlight when view appears again
* Expand size of link touch bounds to make touching them a bit easier

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
64e0ce5
@joehewitt joehewitt * A bunch of new general utility methods
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
eb0bede
@joehewitt joehewitt * Draw images inside of buttons and tabs
* Support for "part styles" which let you declare styles for separate areas
* Always clip before drawing images
* Fix bug in constructing style node trees

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
df2a3e8
@joehewitt joehewitt * Draw images properly in thumb view controller
* Fix bug that required tables to be touched twice before they would scroll after going back

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
9481372
@joehewitt joehewitt * Fix a crash in text field table cells
* Add beginsWithString method to complement endsWithString

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
55ef053
@dougbarth dougbarth Height of text rect should not include margin. 166882c
@dougbarth dougbarth Use helper text field for date field.
We're using a text field to cause the keyboard to be displayed when the
field becomes the first responder. We will place the picker view in the
keyboard view. Since an insertion point does not make sense for a date
field, an opaque label is placed over the text field's text rect, which
hides the insertion point and prevents the user from using the loop.

This feels pretty hacky but this seems to be similar to the behavior
Safari has for select menus.
aaa474a
@dougbarth dougbarth Don't depend on view description.
Use class name instead.
0f0eeb0
@dougbarth dougbarth Delegate method when views are created.
Delegates can use this method to customize the view. For example, they
could set a better keyboard type.
228da32
@dougbarth dougbarth Pulled out TTDateField.
The implementation is rought when used outside of a TTMessageController,
but this view could be useful in cases where users want a UITextField
like object that presents a date picker instead of a keyboard.
88fc9f7
@dougbarth dougbarth Align placeholder text to top left. 3f718cb
@dougbarth dougbarth Call delegate for message view. aa6258c
@dougbarth dougbarth Fixing compilation warning. 5389f4e
Commits on May 02, 2009
@joehewitt joehewitt * TTWebController - a very basic web browser
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
6a73870
Commits on May 05, 2009
@joehewitt joehewitt * Optional header view support in web controller
Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
5b7f67b
@dougbarth dougbarth Update send button before view appears.
If all required fields are pre-filled out, the user should be able to
send the message immediately.
d0a61da
@dougbarth dougbarth Collect date value from view on send. 5d8b89c
Commits on May 08, 2009
@flabrie flabrie - Add French localized strings to bundle. a85618d
@flabrie flabrie - Add -initWithCoder: method to allow usage of TTImageView and TTTabB…
…ar in Interface Builder.
bb5963b
@flabrie flabrie - Add bundle to project ressources to ease access through Xcode. 5c7f3dd
Commits on May 12, 2009
Fred Potter * TTTitledTableFieldCell was incorrectly pulling the title text color…
… from linkTextColor instead of tableTitleTextColor
cd37fda
Fred Potter * Fixed TTTitledTableField so that the height calculation handles the…
… case when the 'text' is empty but the title is not.
5e6bb17
Commits on May 13, 2009
Fred Potter Removing redundant @synthesize call that was breaking in beta 5 2a406bf
Fred Potter * Fixes for TTPhotoViewController & TTThumbsViewController so that th…
…ings are correctly aligned on 3.0
4ba27b2
Commits on May 14, 2009
@klazuka klazuka Fixed a bug in TTTableViewController that incorrectly set the TTActiv…
…ityLabel's frame.origin.y in situations where the TableView's height is less than the controller's view height.

You can test this by creating a tableView with a height of 300px, then do a refresh, and verify that the black 'Updating...' text overlay is still aligned with the bottom of the tableview.
211df53
@klazuka klazuka Fixed a bug in the instance initializers for TTTableViewDataSource su…
…bclasses.

Quoting from the Apple's article "The Objective-C 2.0 Programming Language":
"General Principle: The designated initializer in a class must, through a message to super, invoke the designated initializer in a superclass.

Designated initializers are chained to each other through messages to super, while other initialization methods are chained to designated initializers through messages to self."
0a1c92c
@klazuka klazuka When the user sets the TTURLRequests mimetype to application/x-www-fo…
…rm-urlencoded,

the TTURLRequest will now generate the HTTP body in the form-urlencoded format
rather than as multipart/form-data.

I needed this because some servers that I talk to are not expecting multipart
for simple text POST parameters.
b7341c0
@klazuka klazuka - code cleanup: use NSValue convenience methods provided by UIKit ins…
…tead of getValue:
d5f5632
Commits on May 15, 2009
@klazuka klazuka - organized TTCatalog files into Xcode project groups. 385677f
Commits on May 16, 2009
@sco sco Merge branch 'master' of git://github.com/joehewitt/three20 242f369
@flabrie flabrie Merge branch 'master' of git://github.com/joehewitt/three20 00515f9
Basil Shkara Don't send a message to a possibly freed object.
When TTPhotoViewController is deallocated in the middle of an image
being loaded, `imageViewDidFailLoadWithError:` is sent to TTPhotoView
which sends `urlForVersion:` to the _photo ivar which has already been
deallocated.  This results in a 'FREED(id)' crash.
Rather than performing any checks, just show a relevant message.
93d574a
Joakim Bodin Add translation for opening safari. Better copy for loading 2147e69
Fred Potter * Fixes for TTPhotoViewController & TTThumbsViewController so that th…
…ings are correctly aligned on 3.0

Signed-off-by: Joakim Bodin <joakim.bodin@gmail.com>
45858a9
Commits on May 17, 2009
@flabrie flabrie - Change NSLocalizedString(...) calls for TTLocalizedString(...) to g…
…et proper localization from Three20 bundle;

-	Add missing localized strings to English and French Localizable.string in Three20 bundle.
ec5bf80
Joakim Bodin Dynamicly check iPhone device version to allow Photo and Thumbs view …
…to be correctly laid out, depending on what device version it is run on, indepedent of being compiled for 2.2 or not
b81c353
Commits on May 18, 2009
Brett Adam Made TTPhotoViewController and TTThumbsViewController fixes for 3.0 c…
…onditional on __IPHONE_3_0 #define
80e5fc4
@flabrie flabrie - Add French localized strings to bundle.
Signed-off-by: Brett Adam <bpjadam@gmail.com>
fa844d4
@flabrie flabrie - Add -initWithCoder: method to allow usage of TTImageView and TTTabB…
…ar in Interface Builder.

Signed-off-by: Brett Adam <bpjadam@gmail.com>
847f25b
@flabrie flabrie - Add bundle to project ressources to ease access through Xcode.
Signed-off-by: Brett Adam <bpjadam@gmail.com>
1dc78c9
@flabrie flabrie - Change NSLocalizedString(...) calls for TTLocalizedString(...) to g…
…et proper localization from Three20 bundle;

-	Add missing localized strings to English and French Localizable.string in Three20 bundle.

Signed-off-by: Brett Adam <bpjadam@gmail.com>
3c78d0d
Basil Shkara Don't send a message to a possibly freed object.
When TTPhotoViewController is deallocated in the middle of an image
being loaded, `imageViewDidFailLoadWithError:` is sent to TTPhotoView
which sends `urlForVersion:` to the _photo ivar which has already been
deallocated.  This results in a 'FREED(id)' crash.
Rather than performing any checks, just show a relevant message.

Signed-off-by: Brett Adam <bpjadam@gmail.com>
da6c8c1
Christopher Anderson TTNavigationCenter can now load controllers from nibs
Signed-off-by: Brett Adam <bpjadam@gmail.com>
f445ef4
@verveguy verveguy Use dynamic 3.0 OS discovery c976fe4
@daikini daikini Fix [TTURLRequest generatePostBody] so that it generates the request …
…properly
076c731
Joakim Bodin Merge with joe hewitt's repos 109c5ed
Joakim Bodin Fix botched merge aff6ed5
Commits on May 19, 2009
@verveguy verveguy self.wantsFullScreenLayout #ifdef'd to eliminate compiler warnings on…
… 2.x builds
d3f8284
@daikini daikini Fix [TTURLRequest generatePostBody] so that it generates the request …
…properly
f3e5743
@verveguy verveguy Merge commit 'daikini/master' ec0c88c
@verveguy verveguy Merge commit 'flabrie/master' 5895496
@klazuka klazuka - more helpful log message if maxContentLength exceeded. 5dadacb
Commits on May 20, 2009
@elliotb elliotb Render TTStyledTextLabel with a clear background in TTStyledTextTable…
…FieldCell. Fixes issue where TTStyledTextTableFieldCell corners were incorrectly rendered.

Signed-off-by: studpete <studpete@gmail.com>
145e16b
Fred Potter * Adding an option to TTLinearGradientFillStyle to enable gradients w…
…ith more than 2 colors. For example, to fade from black to white to black, you might do...

[TTLinearGradientFillStyle styleWithColors:[NSArray arrayWithObjects:[UIColor blackColor], [UIColor whiteColor], [UIColor blackColor], nil]
											locations:[NSArray arrayWithObjects:[NSNumber numberWithFloat:0.0f], [NSNumber numberWithFloat:0.5f], [NSNumber numberWithFloat:1.0f], nil] next:nil];

Yes, it's long and ugly.  I briefly looked into doing some varargs stuff, but I don't believe it's possible to have more than one varargs list in a single method.

Signed-off-by: Elliot Bowes <elliot@activeguru.co.uk>

Signed-off-by: studpete <studpete@gmail.com>
73af904
Basil Shkara Don't send a message to a possibly freed object.
When TTPhotoViewController is deallocated in the middle of an image
being loaded, `imageViewDidFailLoadWithError:` is sent to TTPhotoView
which sends `urlForVersion:` to the _photo ivar which has already been
deallocated.  This results in a 'FREED(id)' crash.
Rather than performing any checks, just show a relevant message.

Signed-off-by: studpete <studpete@gmail.com>
7c505ef
@sco sco add a setter for the TTURLRequest body property the body property, in…
… order to allow POSTing JSON bodies, etc.

Signed-off-by: studpete <studpete@gmail.com>
da9f502
Juice Added styledLinkNodeTouched: delegate method to TTStyledTextDelegate,…
… along with an (probably temporary) example implementation.

Signed-off-by: studpete <studpete@gmail.com>
6d0cd3a
Juice Fixed the actual invocation of the delegate method after a name change
Signed-off-by: studpete <studpete@gmail.com>
14cca80
Juice Fixed method name in delegate here as well
Signed-off-by: studpete <studpete@gmail.com>
6142641
Juice Extracted the link node was touched delegate method to a new delegate…
… property on TTStyledTextNode, so TTStyledTextLabel wouldn't be forced to steal it.

Signed-off-by: studpete <studpete@gmail.com>
d79e3fa
@searls searls Added a means to define a TTBoxStyle.minSize.width for a span element.
Signed-off-by: studpete <studpete@gmail.com>
4368565
@searls searls Updates to the layout to support enforcing min width of spans. Think …
…my previous commit missed this.

Signed-off-by: studpete <studpete@gmail.com>
3f98e5b
@searls searls Trim whitespace before checking to see if a required field is filled.…
… I can't imagine many use cases where a space is sufficient to send a message (the keyboard will automatically insert one onblur for me, so I needed something here)

Signed-off-by: studpete <studpete@gmail.com>
f312673
Fred Potter * Added RGBHEXCOLOR macro - makes it a little easier to copy/paste co…
…lors from photoshop

Signed-off-by: studpete <studpete@gmail.com>
ee023e6
Fred Potter * The bottom & right properties are now settable. This is helpful if …
…you want to align two views to the same right edge, for instance.

Signed-off-by: studpete <studpete@gmail.com>
701e94e
Fred Potter Spacing
Signed-off-by: studpete <studpete@gmail.com>
aa828bc
Fred Potter * userInteractionEnabled should default to NO for TTImageView and TTL…
…abel just as it does for UIImageView and UILabel.

Signed-off-by: studpete <studpete@gmail.com>
d5cc619
@dougbarth dougbarth Initialize view with field value.
Signed-off-by: studpete <studpete@gmail.com>
a8c22c1
@dougbarth dougbarth Support for optional message.
Signed-off-by: studpete <studpete@gmail.com>
4226b09
@dougbarth dougbarth Bug fix: message required check wrong.
The previous implementation used a bit-wise and,
resulting the message being marked as compliant
when it's length was odd (the zeroth bit's boolean
value).

Signed-off-by: studpete <studpete@gmail.com>
661ef3d
@dougbarth dougbarth WIP: Support for date fields with shared UIDatePicker.
Signed-off-by: studpete <studpete@gmail.com>
4c2a317
@dougbarth dougbarth Height of text rect should not include margin.
Signed-off-by: studpete <studpete@gmail.com>
ff3ead2
@dougbarth dougbarth Use helper text field for date field.
We're using a text field to cause the keyboard to be displayed when the
field becomes the first responder. We will place the picker view in the
keyboard view. Since an insertion point does not make sense for a date
field, an opaque label is placed over the text field's text rect, which
hides the insertion point and prevents the user from using the loop.

This feels pretty hacky but this seems to be similar to the behavior
Safari has for select menus.

Signed-off-by: studpete <studpete@gmail.com>
129903c
@dougbarth dougbarth Don't depend on view description.
Use class name instead.

Signed-off-by: studpete <studpete@gmail.com>
db64330
@dougbarth dougbarth Delegate method when views are created.
Delegates can use this method to customize the view. For example, they
could set a better keyboard type.

Signed-off-by: studpete <studpete@gmail.com>
70a7095
@dougbarth dougbarth Align placeholder text to top left.
Signed-off-by: studpete <studpete@gmail.com>
56c54eb
@dougbarth dougbarth Call delegate for message view.
Signed-off-by: studpete <studpete@gmail.com>
369677f
@dougbarth dougbarth Update send button before view appears.
If all required fields are pre-filled out, the user should be able to
send the message immediately.

Signed-off-by: studpete <studpete@gmail.com>
3e5db99
@dougbarth dougbarth Collect date value from view on send.
Signed-off-by: studpete <studpete@gmail.com>
938c2f6
@flabrie flabrie - Add French localized strings to bundle.
Signed-off-by: studpete <studpete@gmail.com>
91eb913
@flabrie flabrie - Add -initWithCoder: method to allow usage of TTImageView and TTTabB…
…ar in Interface Builder.

Signed-off-by: studpete <studpete@gmail.com>
04cc54d
@flabrie flabrie - Add bundle to project ressources to ease access through Xcode.
Signed-off-by: studpete <studpete@gmail.com>
4fdebdf
Fred Potter * TTTitledTableFieldCell was incorrectly pulling the title text color…
… from linkTextColor instead of tableTitleTextColor

Signed-off-by: studpete <studpete@gmail.com>
ca2d321
Fred Potter * Fixed TTTitledTableField so that the height calculation handles the…
… case when the 'text' is empty but the title is not.

Signed-off-by: studpete <studpete@gmail.com>
b6f7ead
Fred Potter Removing redundant @synthesize call that was breaking in beta 5
Signed-off-by: studpete <studpete@gmail.com>
1a6020c
Fred Potter * Fixes for TTPhotoViewController & TTThumbsViewController so that th…
…ings are correctly aligned on 3.0

Signed-off-by: studpete <studpete@gmail.com>
b0c3572
@flabrie flabrie - Change NSLocalizedString(...) calls for TTLocalizedString(...) to g…
…et proper localization from Three20 bundle;

-	Add missing localized strings to English and French Localizable.string in Three20 bundle.

Signed-off-by: studpete <studpete@gmail.com>
98df418
Brett Adam Made TTPhotoViewController and TTThumbsViewController fixes for 3.0 c…
…onditional on __IPHONE_3_0 #define

Signed-off-by: studpete <studpete@gmail.com>
320bc04
Christopher Anderson TTNavigationCenter can now load controllers from nibs
Signed-off-by: Brett Adam <bpjadam@gmail.com>

Signed-off-by: studpete <studpete@gmail.com>
dd0810b
@verveguy verveguy Use dynamic 3.0 OS discovery
Signed-off-by: studpete <studpete@gmail.com>
7506f98
@daikini daikini Fix [TTURLRequest generatePostBody] so that it generates the request …
…properly

Signed-off-by: studpete <studpete@gmail.com>
e4c3b55
@verveguy verveguy self.wantsFullScreenLayout #ifdef'd to eliminate compiler warnings on…
… 2.x builds

Signed-off-by: studpete <studpete@gmail.com>
855fda8
@daikini daikini Add ability to specify custom headers 49ffccc
@klazuka klazuka Merge branch 'master' of git://github.com/joehewitt/three20 7a0ab93
@daikini daikini Merge branch 'master' of git://github.com/joehewitt/three20 e251c6a
@klazuka klazuka Fixed a bug in TTTableViewController that incorrectly set the TTActiv…
…ityLabel's frame.origin.y in situations where the TableView's height is less than the controller's view height.

You can test this by creating a tableView with a height of 300px, then do a refresh, and verify that the black 'Updating...' text overlay is still aligned with the bottom of the tableview.

Signed-off-by: studpete <studpete@gmail.com>
2bc2432
@klazuka klazuka Fixed a bug in the instance initializers for TTTableViewDataSource su…
…bclasses.

Quoting from the Apple's article "The Objective-C 2.0 Programming Language":
"General Principle: The designated initializer in a class must, through a message to super, invoke the designated initializer in a superclass.

Designated initializers are chained to each other through messages to super, while other initialization methods are chained to designated initializers through messages to self."

Signed-off-by: studpete <studpete@gmail.com>
b150794
@klazuka klazuka - code cleanup: use NSValue convenience methods provided by UIKit ins…
…tead of getValue:

Signed-off-by: studpete <studpete@gmail.com>
6df4403
@klazuka klazuka - organized TTCatalog files into Xcode project groups.
Signed-off-by: studpete <studpete@gmail.com>
d341e5f
@klazuka klazuka - more helpful log message if maxContentLength exceeded.
Signed-off-by: studpete <studpete@gmail.com>
e233b77
@dnerdy dnerdy Dynamic lookup of cell classes for TTTableField objects
Allows for the use of custom TTTableField[Cell] classes without modifying -tableView:cellClassForObject:. Simply following the existing naming convention. Another solution would be class registration, but that sucks.

Signed-off-by: studpete <studpete@gmail.com>
289e80a
@jdg jdg Ensure textColor is set from default stylesheet for TTStyledTextLabel
Signed-off-by: studpete <studpete@gmail.com>
e2c6f1a
@jdg jdg Ensure that tableSeparatorColor from DefaultStyleSheet is being applied.
Signed-off-by: studpete <studpete@gmail.com>
08afb25
@jdg jdg Add tableBackgroundColor to default stylesheet and implement it in TT…
…ableView.

Signed-off-by: studpete <studpete@gmail.com>
fca93c8
@steipete steipete text = _text is obsolete on os3b5 46ff236
@steipete steipete Merge commit 'origin/integrationtest' 24dfe26
@steipete steipete added linker flag -all_load to fix bug in os3b5 66530ba
@daikini daikini Ignore .mode1v3 files a7a1dfd
@daikini daikini Add ability to send application/x-www-form-urlencoded in addition to …
…multipart/form-data requests
32738ee
@daikini daikini Remove explicit _text ivar synthesis 8346dd9
@sco sco Merge branch 'master' of git://github.com/joehewitt/three20 d031df3
Commits on May 21, 2009
@verveguy verveguy Merge commit 'joehewitt/master' 6c25305
@verveguy verveguy Updated .gitignore ded36ec
@verveguy verveguy Merge commit 'studpete/master' f45dbef
@verveguy verveguy Typo'd .gitignore change 7a2a2e8
@verveguy verveguy Merge commit 'daikini/master'
Conflicts:
	.gitignore
f139c63
@daikini daikini Merge branch 'master' of git://github.com/joehewitt/three20 dcd7580
Joakim Bodin Merge branch 'master' of git://github.com/joehewitt/three20 eb0cf28
Joakim Bodin Handle all possible image orientations when rotating an image 43be469
Commits on May 22, 2009
@klazuka klazuka Merge branch 'master' of git://github.com/joehewitt/three20 5fc721a
@klazuka klazuka - new TTCatalog example: tableview with asynchronous JSON and XML dat…
…a sources
17bc754
@klazuka klazuka - removed SVN crap from JSON parser directory 62a4422
Commits on May 24, 2009
@daikini daikini Add ability to specify the maximum number of concurrent loads per queue 72c4bc2
@verveguy verveguy Merge commit 'klazuka/master'
Conflicts:
	samples/TTCatalog/TTCatalog.xcodeproj/project.pbxproj
5431868
@verveguy verveguy Fixed .gitignore again 81e4f80
@verveguy verveguy Add ability to specify the maximum number of concurrent loads per queue
Patched from daikini/master 72c4bc2
056a868
@verveguy verveguy Merge commit 'daikini/master' 1905751
@verveguy verveguy Resolved conflicts with jbripley/master
Merge commit 'jbripley/master'

Conflicts:
	src/TTPhotoViewController.m
	src/TTThumbsViewController.m
01f2b1d
@verveguy verveguy Merge commit 'baz/master' e157c4f
Brett Adam Merge commit 'sco/master'
Conflicts:
	src/TTURLRequest.m
b00418c
Brett Adam Resolved merge conflicts with sco/master f1dcacc
@verveguy verveguy Merge commit 'sco/master'
Conflicts:
	src/TTURLRequest.m
6b6dc57
@verveguy verveguy Fixups to merge conflicts b616f65
@verveguy verveguy Stumbled over self-changes 50fbb05
@verveguy verveguy Integrated dougbarth's additional changes
Merge commit 'dougbarth/master'

Conflicts:
	src/TTMessageController.m
	src/Three20.xcodeproj/project.pbxproj
08c3cee
@verveguy verveguy Added -addObjects helper method to TTSectionedDataSource for ease of …
…dynamically adding sections
11d4e47
@daikini daikini Add ability to get current load count 58abee9
Commits on May 27, 2009
@dougbarth dougbarth Update send button on any field change. 269ea37
@dougbarth dougbarth Update send command when view becomes valid.
We may be returning to this view due to an error when sending. The view
is already loaded, but we are reshowing it. Therefore, we should update
the send command which is likely to be enabled.
b8a995d
Commits on May 29, 2009
@verveguy verveguy Merge commit 'joehewitt/master'
Conflicts:
	src/TTPhotoViewController.m
	src/TTThumbsViewController.m
f48659f
@verveguy verveguy Merge commit 'joehewitt/master'
Conflicts:
	.gitignore
	src/UIViewAdditions.m
e7aa83e
@daikini daikini Updated Three20 6b68dbe
Commits on May 30, 2009
@fly1028 fly1028 Fixed memory leaks d49beca
Commits on Jun 01, 2009
@endico endico Issue 24: When deallocating TTPhotoView, remove its delegate from the…
… request queue. Copied from TTViewController. Fixes crash when TTPhotoViewController was deallocated before photo finished loading.
c1d56f8
@verveguy verveguy Merge commit 'fly1028/master' b37ec0d
@searls searls Removed silly and unnecessary NSLog call. 5672dee
@verveguy verveguy Merge commit 'daikini/master' 6f22bad
@searls searls Added a check to ensure that the project is being linked to 3.0, in a…
…ddition to the host OS version in the branch to decide whether to use a UIScrollView (3.0 & higher) or TTComposeInnerScrollView (before 3.0). This should prevent regression bug of MessageController not scrolling on 2.2.1 apps running on OS 3.0 devices.
513a381
Commits on Jun 04, 2009
@dougbarth dougbarth Merge commit 'joehewitt/master'
* commit 'joehewitt/master':
  * Ability to zoom the photo view controller to fit, and detect when it is zoomed
  * New table cell for displaying a search bar
  * Better way to check for OS 3.0-specific code
  * One more iPhone OS 3.0 fix
  * Fix the photo viewer and message composer is iPhone OS 3.0
  * Minor fixes
  * Fix calls to bad NSDate method
  * Various minor bug fixes
  * Update README to make instructions regarding the compiler flags more clear
  * Optional header view support in web controller
  * TTWebController - a very basic web browser
  * Fix a crash in text field table cells
  * Draw images properly in thumb view controller
  * Draw images inside of buttons and tabs
  * A bunch of new general utility methods
  * Avoid re-drawing styled text labels when touched, improving table scrolling speed
  * Respect all contentMode values when drawing images

Conflicts:
	src/Three20.xcodeproj/project.pbxproj
3cc5bcf
Commits on Jun 05, 2009
@dougbarth dougbarth Fixes for 2.x compiled photo viewer on 3.0 OS. 8703da6
@dougbarth dougbarth Fixing some memory leaks in the thumbnail controller. 3565dff
Commits on Jun 09, 2009
Joakim Bodin Add swedish translation b7fde4c
Joakim Bodin Change l10n function so that strings are picked up from the three20 b…
…undle
f1c1703
Joakim Bodin Handle all possible image rotations 6515a90
@dougbarth dougbarth Fixes for 2.x compiled photo viewer on 3.0 OS. 39bc07a
Commits on Jun 10, 2009
@verveguy verveguy Merge commit 'joehewitt/master'
Conflicts:
	src/TTMessageController.m
	src/TTPhotoViewController.m
	src/TTThumbsViewController.m
2b11d5f
@dougbarth dougbarth Fixes for 2.x compiled photo viewer on 3.0 OS. 1ed636d
@dougbarth dougbarth Fixing some memory leaks in the thumbnail controller. 652ead0
@dougbarth dougbarth Update send button on any field change. 7b94e86
@dougbarth dougbarth Update send command when view becomes valid.
We may be returning to this view due to an error when sending. The view
is already loaded, but we are reshowing it. Therefore, we should update
the send command which is likely to be enabled.
e2b8fa9
@verveguy verveguy Merge commit 'dougbarth/master'
Conflicts:
	src/Three20.xcodeproj/project.pbxproj
0b387d2
@verveguy verveguy Merge commit 'jbripley/master' 8b34d04
Commits on Jun 11, 2009
@verveguy verveguy Bad merge on pbxproj file 0c64eb5
Commits on Jun 17, 2009
@verveguy verveguy Merge commit 'joehewitt/master' 9ae5679
@verveguy verveguy Fixed TTThumbsViewController so that it handles chrome/toolbar offset…
… correctly when built with 2.x or 3.0 and run on 3.0. Also fixes behavior in simulators for both 2.x and 3.0. Tested on 2.2.1 and 3.0 devices as well.
f3a9d06
@verveguy verveguy Removed incorrect localization file (bad merge?) and cleaned up pbxpr…
…oject TTDAteField.h (bad merge)
ed82390