fixed problem with twittia: scheme
This commit is contained in:
parent
a2d456b168
commit
ce5ee9f2ee
7 changed files with 52 additions and 36 deletions
18
Appcast.xml
18
Appcast.xml
|
@ -7,16 +7,14 @@
|
||||||
<language>en</language>
|
<language>en</language>
|
||||||
<item>
|
<item>
|
||||||
<title>Version 2.1.0 (Added Mentions)</title>
|
<title>Version 2.1.0 (Added Mentions)</title>
|
||||||
<sparkle:minimumSystemVersion>10.5.0</sparkle:minimumSystemVersion>
|
<sparkle:minimumSystemVersion>10.5.0</sparkle:minimumSystemVersion>
|
||||||
<sparkle:releaseNotesLink>
|
<sparkle:releaseNotesLink>http://jeenaparadies.net/twittia/ReleaseNotes.html</sparkle:releaseNotesLink>
|
||||||
http://jeenaparadies.net/twittia/ReleaseNotes.html
|
<pubDate>Sun, 25 Apr 2010 18:00:00 +0000</pubDate>
|
||||||
</sparkle:releaseNotesLink>
|
<enclosure url="http://jeenaparadies.net/twittia/Twittia.app.zip"
|
||||||
<pubDate>Sun, 25 Apr 2010 16:30:00 +0000</pubDate>
|
sparkle:version="2.1.0"
|
||||||
<enclosure url="http://jeenaparadies.net/twittia/Twittia.app.zip"
|
length="490811"
|
||||||
sparkle:version="2.1.0"
|
type="application/octet-stream"
|
||||||
length="488877"
|
sparkle:dsaSignature="MC0CFBhmqxktwcqIqFM2F/blXAIfBmHhAhUAq19o2TB8v7f7nU9i+KFC3VrsWc0=" />
|
||||||
type="application/octet-stream"
|
|
||||||
sparkle:dsaSignature="MCwCFHrvMjy3m0F/ST/R9Y1RFD5q3bfzAhQiSDKToDkWtmJZILgQUNM0yXBSig==" />
|
|
||||||
</item>
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
|
@ -11,6 +11,7 @@
|
||||||
#import "ViewDelegate.h"
|
#import "ViewDelegate.h"
|
||||||
#import <Carbon/Carbon.h>
|
#import <Carbon/Carbon.h>
|
||||||
|
|
||||||
|
|
||||||
@interface Controller : NSObject {
|
@interface Controller : NSObject {
|
||||||
IBOutlet WebView *timelineView;
|
IBOutlet WebView *timelineView;
|
||||||
IBOutlet WebView *mentionsView;
|
IBOutlet WebView *mentionsView;
|
||||||
|
@ -24,6 +25,7 @@
|
||||||
- (void)initWebViews;
|
- (void)initWebViews;
|
||||||
- (void)openNewTweetWindowInReplyTo:(NSString *)userName statusId:(NSString *)statusId;
|
- (void)openNewTweetWindowInReplyTo:(NSString *)userName statusId:(NSString *)statusId;
|
||||||
- (NSString *)pluginURL;
|
- (NSString *)pluginURL;
|
||||||
|
- (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent;
|
||||||
|
|
||||||
OSStatus handler(EventHandlerCallRef nextHandler, EventRef theEvent, void* userData);
|
OSStatus handler(EventHandlerCallRef nextHandler, EventRef theEvent, void* userData);
|
||||||
|
|
||||||
|
|
15
Controller.m
15
Controller.m
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
- (void)awakeFromNib {
|
- (void)awakeFromNib {
|
||||||
[self initWebViews];
|
[self initWebViews];
|
||||||
|
|
||||||
|
|
||||||
/* CARBON from http://github.com/Xjs/drama-button/blob/carbon/Drama_ButtonAppDelegate.m */
|
/* CARBON from http://github.com/Xjs/drama-button/blob/carbon/Drama_ButtonAppDelegate.m */
|
||||||
|
|
||||||
|
@ -46,7 +45,10 @@
|
||||||
object:nil];
|
object:nil];
|
||||||
|
|
||||||
NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager];
|
NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager];
|
||||||
[appleEventManager setEventHandler:self andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL];
|
[appleEventManager setEventHandler:self
|
||||||
|
andSelector:@selector(handleGetURLEvent:withReplyEvent:)
|
||||||
|
forEventClass:kInternetEventClass
|
||||||
|
andEventID:kAEGetURL];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)initWebViews {
|
- (void)initWebViews {
|
||||||
|
@ -90,17 +92,16 @@
|
||||||
[newTweet inReplyTo:userName statusId:statusId];
|
[newTweet inReplyTo:userName statusId:statusId];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
- (void)openNewTweetWindowWithString:(NSString *)aString {
|
- (void)openNewTweetWindowWithString:(NSString *)aString {
|
||||||
|
NSLog(@"testing");
|
||||||
[NSApp activateIgnoringOtherApps:YES];
|
[NSApp activateIgnoringOtherApps:YES];
|
||||||
MyDocument *newTweet = (MyDocument *)[[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:YES error:nil];
|
MyDocument *newTweet = (MyDocument *)[[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:YES error:nil];
|
||||||
[newTweet withString:aString];
|
[newTweet withString:aString];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent
|
- (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent {
|
||||||
{
|
NSString *text = [[[event paramDescriptorForKeyword:keyDirectObject] stringValue] substringFromIndex:8];
|
||||||
NSString *text = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
|
[self openNewTweetWindowWithString:[text stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
|
||||||
[self openNewTweetWindowWithString:[text substringFromIndex:8]];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)sendTweet:(id)sender {
|
- (IBAction)sendTweet:(id)sender {
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
<integer value="559"/>
|
<integer value="559"/>
|
||||||
<integer value="81"/>
|
|
||||||
<integer value="536"/>
|
<integer value="536"/>
|
||||||
|
<integer value="81"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
|
@ -1291,6 +1291,14 @@
|
||||||
</object>
|
</object>
|
||||||
<int key="connectionID">563</int>
|
<int key="connectionID">563</int>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="IBConnectionRecord">
|
||||||
|
<object class="IBOutletConnection" key="connection">
|
||||||
|
<string key="label">delegate</string>
|
||||||
|
<reference key="source" ref="1021"/>
|
||||||
|
<reference key="destination" ref="408500656"/>
|
||||||
|
</object>
|
||||||
|
<int key="connectionID">564</int>
|
||||||
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||||
<object class="NSArray" key="orderedObjects">
|
<object class="NSArray" key="orderedObjects">
|
||||||
|
@ -2310,7 +2318,7 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<nil key="sourceID"/>
|
<nil key="sourceID"/>
|
||||||
<int key="maxID">563</int>
|
<int key="maxID">564</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||||
|
@ -2325,14 +2333,12 @@
|
||||||
<string>mentionsView</string>
|
<string>mentionsView</string>
|
||||||
<string>timelineView</string>
|
<string>timelineView</string>
|
||||||
<string>viewDelegate</string>
|
<string>viewDelegate</string>
|
||||||
<string>viewDelegate2</string>
|
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMutableArray" key="dict.values">
|
<object class="NSMutableArray" key="dict.values">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
<string>WebView</string>
|
<string>WebView</string>
|
||||||
<string>WebView</string>
|
<string>WebView</string>
|
||||||
<string>id</string>
|
<string>ViewDelegate</string>
|
||||||
<string>id</string>
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
@ -2340,6 +2346,14 @@
|
||||||
<string key="minorKey">Controller.h</string>
|
<string key="minorKey">Controller.h</string>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="IBPartialClassDescription">
|
||||||
|
<string key="className">ViewDelegate</string>
|
||||||
|
<string key="superclassName">NSObject</string>
|
||||||
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
<string key="majorKey">IBProjectSource</string>
|
||||||
|
<string key="minorKey">ViewDelegate.h</string>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+">
|
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
|
|
|
@ -7,25 +7,30 @@
|
||||||
body { font-family: "Lucida Grande", sans-serif; font-size: 0.75em; }
|
body { font-family: "Lucida Grande", sans-serif; font-size: 0.75em; }
|
||||||
h1 { font-size: 1.2em; }
|
h1 { font-size: 1.2em; }
|
||||||
h2 { font-size: 1em; margin-top: 2em; }
|
h2 { font-size: 1em; margin-top: 2em; }
|
||||||
|
hr { margin: 3em 0; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1>Twittia Release Notes</h1>
|
<h1>Twittia 2.1.0</h1>
|
||||||
|
|
||||||
<h2>Twittia 2.1.0</h2>
|
|
||||||
<p>Fixed some wrong links.</p>
|
<p>Fixed some wrong links.</p>
|
||||||
<p>Fixed problem with closed timeline window.</p>
|
<p>Fixed problem with closed timeline window.</p>
|
||||||
<p>Implemented a mentions view.</p>
|
<p>Implemented a mentions view.</p>
|
||||||
|
|
||||||
<h2>Twittia 2.0.2</h2>
|
<hr />
|
||||||
|
|
||||||
|
<h1>Twittia 2.0.2</h1>
|
||||||
<p>Added the <code>twittia:</code> URL scheme.</p>
|
<p>Added the <code>twittia:</code> URL scheme.</p>
|
||||||
<p>Added a JavaScript-plugin API.</p>
|
<p>Added a JavaScript-plugin API.</p>
|
||||||
|
|
||||||
<h2>Twittia 2.0.1</h2>
|
<hr />
|
||||||
|
|
||||||
|
<h1>Twittia 2.0.1</h1>
|
||||||
<p>Added Sparcle so the updates will be less efford for the user.</p>
|
<p>Added Sparcle so the updates will be less efford for the user.</p>
|
||||||
|
|
||||||
<h2>Twittia 2.0</h2>
|
<hr />
|
||||||
|
|
||||||
|
<h1>Twittia 2.0</h1>
|
||||||
<p>This is a complete rewrite, I cut 80% of the functionality and
|
<p>This is a complete rewrite, I cut 80% of the functionality and
|
||||||
now it only has functionality which I care for.</p>
|
now it only has functionality which I care for.</p>
|
||||||
<p>This is also the first version I try to distribute Sparcle, so
|
<p>This is also the first version I try to distribute Sparcle, so
|
||||||
|
|
|
@ -10,9 +10,6 @@
|
||||||
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58280DA1D0D100B32029 /* MyDocument.xib */; };
|
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58280DA1D0D100B32029 /* MyDocument.xib */; };
|
||||||
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
|
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
|
||||||
1F1990C6117BCA960049BEA7 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F1990C5117BCA960049BEA7 /* ApplicationServices.framework */; };
|
1F1990C6117BCA960049BEA7 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F1990C5117BCA960049BEA7 /* ApplicationServices.framework */; };
|
||||||
1F4673E31180F519006CC37C /* jQuery.js in Sources */ = {isa = PBXBuildFile; fileRef = 1F4673E21180F519006CC37C /* jQuery.js */; };
|
|
||||||
1F4673E51180F590006CC37C /* jQuery-Plugins.js in Sources */ = {isa = PBXBuildFile; fileRef = 1F4673E41180F590006CC37C /* jQuery-Plugins.js */; };
|
|
||||||
1F4673E71180F654006CC37C /* TwittiaCore.js in Sources */ = {isa = PBXBuildFile; fileRef = 1F4673E61180F654006CC37C /* TwittiaCore.js */; };
|
|
||||||
1F4673FE1180F7EA006CC37C /* TwittiaCore.js in Resources */ = {isa = PBXBuildFile; fileRef = 1F4673E61180F654006CC37C /* TwittiaCore.js */; };
|
1F4673FE1180F7EA006CC37C /* TwittiaCore.js in Resources */ = {isa = PBXBuildFile; fileRef = 1F4673E61180F654006CC37C /* TwittiaCore.js */; };
|
||||||
1F4674081180F7EE006CC37C /* jQuery.js in Resources */ = {isa = PBXBuildFile; fileRef = 1F4673E21180F519006CC37C /* jQuery.js */; };
|
1F4674081180F7EE006CC37C /* jQuery.js in Resources */ = {isa = PBXBuildFile; fileRef = 1F4673E21180F519006CC37C /* jQuery.js */; };
|
||||||
1F4674091180F7F3006CC37C /* jQuery-Plugins.js in Resources */ = {isa = PBXBuildFile; fileRef = 1F4673E41180F590006CC37C /* jQuery-Plugins.js */; };
|
1F4674091180F7F3006CC37C /* jQuery-Plugins.js in Resources */ = {isa = PBXBuildFile; fileRef = 1F4673E41180F590006CC37C /* jQuery-Plugins.js */; };
|
||||||
|
@ -249,16 +246,16 @@
|
||||||
isa = PBXResourcesBuildPhase;
|
isa = PBXResourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
1F4674091180F7F3006CC37C /* jQuery-Plugins.js in Resources */,
|
|
||||||
1F4674081180F7EE006CC37C /* jQuery.js in Resources */,
|
|
||||||
1F4673FE1180F7EA006CC37C /* TwittiaCore.js in Resources */,
|
1F4673FE1180F7EA006CC37C /* TwittiaCore.js in Resources */,
|
||||||
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */,
|
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */,
|
||||||
8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */,
|
8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */,
|
||||||
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */,
|
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */,
|
||||||
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */,
|
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */,
|
||||||
1FFA36CD1177D861006C8562 /* even-bg.png in Resources */,
|
1FFA36CD1177D861006C8562 /* even-bg.png in Resources */,
|
||||||
|
1F4674091180F7F3006CC37C /* jQuery-Plugins.js in Resources */,
|
||||||
1FFA36CE1177D861006C8562 /* index.html in Resources */,
|
1FFA36CE1177D861006C8562 /* index.html in Resources */,
|
||||||
1FFA36CF1177D861006C8562 /* odd-bg.png in Resources */,
|
1FFA36CF1177D861006C8562 /* odd-bg.png in Resources */,
|
||||||
|
1F4674081180F7EE006CC37C /* jQuery.js in Resources */,
|
||||||
1FFA36D01177D861006C8562 /* default.css in Resources */,
|
1FFA36D01177D861006C8562 /* default.css in Resources */,
|
||||||
1F705EA6117889FA00C85707 /* sprite-icons.png in Resources */,
|
1F705EA6117889FA00C85707 /* sprite-icons.png in Resources */,
|
||||||
);
|
);
|
||||||
|
@ -275,9 +272,6 @@
|
||||||
8D15AC320486D014006FF6A4 /* main.m in Sources */,
|
8D15AC320486D014006FF6A4 /* main.m in Sources */,
|
||||||
1FFA36D71177D879006C8562 /* Controller.m in Sources */,
|
1FFA36D71177D879006C8562 /* Controller.m in Sources */,
|
||||||
1FFA36D81177D879006C8562 /* ViewDelegate.m in Sources */,
|
1FFA36D81177D879006C8562 /* ViewDelegate.m in Sources */,
|
||||||
1F4673E31180F519006CC37C /* jQuery.js in Sources */,
|
|
||||||
1F4673E51180F590006CC37C /* jQuery-Plugins.js in Sources */,
|
|
||||||
1F4673E71180F654006CC37C /* TwittiaCore.js in Sources */,
|
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -60,6 +60,8 @@
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>CFBundleURLName</key>
|
||||||
|
<string>net.jeena.apps.twittia.handler</string>
|
||||||
<key>CFBundleURLSchemes</key>
|
<key>CFBundleURLSchemes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>twittia</string>
|
<string>twittia</string>
|
||||||
|
|
Reference in a new issue