profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/niw/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Yoshimasa Niwa niw San Francisco, CA Software engineering, loving cats.

mootoh/Konjac 27

Input Method using Translate APIs.

niw/Echo 20

A simple iOS application redirects microphone input to the Bluetooth audio device

niw/growl_reeder 17

A tiny SIMBL plugin to enable Growl desktop notification in awesome Reeder.app for Mac

nanki/purl 15

purl: Image manipulation language in URL working as a Rails Plugin.

niw/automatic_linking_tool 12

A simple command line tool to check Mach-O binary configuration for automatic linking

niw/clang_plugins 12

A repository for clang plugins development

niw/GraphQLLanguage 12

A simple GraphQL language parser library for Swift.

niw/gitx 7

A gitk clone for OS X

niw/gmail_contrast_theme 6

Contrast Theme for Gmail Chrome Extension

niw/chemr 4

CHM viewer for MacOS X, Forked from original SVN repository

push eventtwitter/twemoji-parser

Justine De Caires

commit sha 384b4597d0fc7987d26389d563ea615793a46b72

Fix Travis build

view details

push time in 3 days

PR opened twitter/twemoji-parser

Open source regex generator

Fixes #14.

+8409 -6

0 comment

26 changed files

pr created time in 3 days

create barnchtwitter/twemoji-parser

branch : jdecaires/open-source-generator

created branch time in 3 days

startedgishi523/coarse-to-fine-patchmatch

started time in 3 days

startedFangjinhuaWang/PatchmatchNet

started time in 4 days

startedNeoGeographyToolkit/StereoPipeline

started time in 4 days

startedZhaoyi-Yan/Shift-Net_pytorch

started time in 4 days

issue commenttwitter/TwitterTextEditor

UITextViewDelegate-like functionality?

Thanks, good to know I'm on the right track. I certainly understand the difficulties with textView(_:shouldChangeTextIn:replacementText:), which is one of the reasons I'm using TwitterTextEditor (thanks!). You may want to vend a conforming type users can use to customize the response. As it is now, returning the incoming value or nil seem to do the same thing in the delegate method.

By the way, for limiting number of characters, I recommend to not actually limit number of characters by the text editor level, but provides commit action to users such as adding Save or Send button to the interface then decide if application accepts the text or not when these buttons are tapped. Because users may want to type more and then polish it in regular typing situation, so if it is limited by the number characters, it might be annoying. Well, it’s just ”in general” for regular user experiences. It might be vary for the application requirements.

That's what I argued for, but the requirements went the other way. 😢

jshier

comment created time in 4 days

issue commenttwitter/TwitterTextEditor

UITextViewDelegate-like functionality?

Adding my own conforming type seems to work.

extension TextEditor: TextEditorViewEditingContentDelegate {
    func textEditorView(_ textEditorView: TextEditorView,
                        updateEditingContent editingContent: TextEditorViewEditingContent)
    -> TextEditorViewEditingContent? {
        guard editingContent.text.count > maximumCharacterCount else { return editingContent }
        
        return EditedContent(text: String(editingContent.text.prefix(maximumCharacterCount)),
                             selectedRange: NSRange(location: maximumCharacterCount, length: 0))
    }
}

private struct EditedContent: TextEditorViewEditingContent {
    var text: String
    
    var selectedRange: NSRange
}
jshier

comment created time in 4 days

issue openedtwitter/TwitterTextEditor

UITextViewDelegate-like functionality?

Question

UITextViewDelegate allows you to control whether the user's edits take effect through textView(_:shouldChangeTextIn:replacementText:). I can find no replacement for TwitterTextEditor. The closest I can find is TextEditorViewEditingContentDelegate's textEditorView(_:updateEditingContent) method, but returning nil from that method doesn't seem to have the affect I want (not applying the change). It seems like I should be able to create my own editing content, but there are no types which publicly conform to TextEditorViewEditingContent. Am I supposed to create my own conforming type? In any case, it seems like this functionality should be simpler.

created time in 4 days

startedniw/HapticKey

started time in 6 days

startedniw/KeyboardGuide

started time in 6 days

startedniw/KeyboardGuide

started time in 7 days

startedniw/HapticKey

started time in 7 days

issue openedniw/HapticKey

Release a new version?

As #42 #43 have been merged, and M1 devices has been released for months. I think it's a good idea to release a version with those fixes?

created time in 8 days

startedniw/HapticKey

started time in 9 days

startedniw/node-base128

started time in 9 days

startedniw/node-base128

started time in 10 days

fork 00mjk/HapticKey

A simple utility application to trigger haptic feedback when tapping Touch Bar.

fork in 10 days

startedniw/KeyboardGuide

started time in 14 days

started1900zyh/3D-Human-Body-Shape

started time in 14 days

startedniw/KeyboardGuide

started time in 16 days

startedniw/HapticKey

started time in 16 days

startedcroft123/LumigraphRendering

started time in 17 days

startedleomariga/pyRANSAC-3D

started time in 18 days

startedthiagortk/Stereo-Vision

started time in 18 days

startedjiuerbujie/stereo_matching

started time in 18 days

startedniw/HapticKey

started time in 18 days

startedniw/TinyLinux

started time in 19 days

startedniw/HapticKey

started time in 19 days