luciuskwok / HelTweetica

Twitter app for iPad that won Best Social App at iPadDevCamp NYC 2010.
http://felttip.com/heltweetica/
144 stars 7 forks source link

Compose: allow for newlines in tweets. #42

Closed luciuskwok closed 14 years ago

luciuskwok commented 14 years ago

The current version uses a multi-line text label, which seems unable to insert newlines. It might be possible in the delegate which accepts the return key to insert a newline. Or it might require changing over to a NSTextView for text entry.

luciuskwok commented 14 years ago

It's possible to have NSTextField insert newlines and tabs instead of ending editing, if you use the code in QA1454 How to make NSTextField accept tab, return and enter keys. However, to support drag and drop of images into the text field and intercept the drags, I had to use a NSTextView, which does the right thing automatically with tab and return. Fixed in f0b42dd992cff12452bbf44ede91a1cc0cb57e24.