From 1e39bed3f027ad1dea0941c74f1812751135c8e5 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Sat, 29 May 2010 16:37:17 +0200 Subject: [PATCH] added counter to new tweet window --- English.lproj/MyDocument.xib | 100 +++++++++++++++++++++++++++++++---- MyDocument.m | 4 ++ 2 files changed, 93 insertions(+), 11 deletions(-) diff --git a/English.lproj/MyDocument.xib b/English.lproj/MyDocument.xib index 4f7c9c0..489f89f 100644 --- a/English.lproj/MyDocument.xib +++ b/English.lproj/MyDocument.xib @@ -1,18 +1,18 @@ - 1060 - 10C540 - 740 - 1038.25 - 458.00 + 1050 + 10D573 + 762 + 1038.29 + 460.00 com.apple.InterfaceBuilder.CocoaPlugin - 740 + 762 YES - + YES @@ -60,7 +60,7 @@ -1809711615 272629760 - + LucidaGrande 13 1044 @@ -80,13 +80,42 @@ 6 System textColor - + 3 MAA + + + 268 + {{244, 2}, {38, 17}} + + YES + + 68288064 + 71304192 + 140 + + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + + + + {299, 113} @@ -137,6 +166,14 @@ 100035 + + + counter + + + + 100038 + @@ -175,6 +212,7 @@ YES + @@ -198,6 +236,20 @@ + + 100036 + + + YES + + + + + + 100037 + + + @@ -207,6 +259,8 @@ -3.IBPluginDependency 100028.IBPluginDependency 100029.IBPluginDependency + 100036.IBPluginDependency + 100037.IBPluginDependency 5.IBEditorWindowLastContentRect 5.IBPluginDependency 5.IBWindowTemplateEditedContentRect @@ -222,6 +276,8 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{127, 736}, {299, 113}} com.apple.InterfaceBuilder.CocoaPlugin {{127, 736}, {299, 113}} @@ -249,7 +305,7 @@ - 100035 + 100038 @@ -645,6 +701,27 @@ Foundation.framework/Headers/NSURLDownload.h + + NSObject + + IBFrameworkSource + Print.framework/Headers/PDEPluginInterface.h + + + + NSObject + + IBFrameworkSource + Sparkle.framework/Headers/SUAppcast.h + + + + NSObject + + IBFrameworkSource + Sparkle.framework/Headers/SUUpdater.h + + NSObject @@ -797,9 +874,10 @@ 0 + IBCocoaFramework com.apple.InterfaceBuilder.CocoaPlugin.macosx - + com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 diff --git a/MyDocument.m b/MyDocument.m index 3b8dd92..1c2a74b 100644 --- a/MyDocument.m +++ b/MyDocument.m @@ -86,6 +86,10 @@ [[textField currentEditor] setSelectedRange:range]; } +-(void)controlTextDidChange:(NSNotification *)aNotification { + [counter setIntValue: 140 - [[textField stringValue] length]]; +} + #pragma mark Keyboard delegate methods