• R/O
  • SSH
  • HTTPS

mani2: Commit


Commit MetaInfo

Revision63 (tree)
Time2009-06-21 21:16:09
Authorhikarin

Log Message

[mani2/touch] * implemented URL invokation from mani2://

Change Summary

Incremental Difference

--- trunk/touch/Classes/ManiTouchAppDelegate.m (revision 62)
+++ trunk/touch/Classes/ManiTouchAppDelegate.m (revision 63)
@@ -1,3 +1,22 @@
1+/*
2+ * Copyright (C) 2008-2009 hkrn
3+ *
4+ * This library is free software; you can redistribute it and/or
5+ * modify it under the terms of the GNU Library General Public
6+ * License as published by the Free Software Foundation; either
7+ * version 2 of the License, or (at your option) any later version.
8+ *
9+ * This library is distributed in the hope that it will be useful,
10+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+ * Library General Public License for more details.
13+ *
14+ * You should have received a copy of the GNU Library General Public
15+ * License along with this library; if not, write to the
16+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17+ * Boston, MA 02110-1301, USA.
18+ */
19+
120 //
221 // ManiTouchAppDelegate.m
322 // ManiTouch
@@ -5,7 +24,7 @@
524 // Created by hkrn on 08/12/28.
625 // Copyright hkrn 2008. All rights reserved.
726 //
8-// $Id$
27+// $Id$
928 //
1029
1130 #import "ManiTouchAppDelegate.h"
@@ -16,13 +35,24 @@
1635 @synthesize window;
1736 @synthesize viewController;
1837
19-- (void)applicationDidFinishLaunching:(UIApplication *)application {
20- // Override point for customization after app launch
38+- (BOOL)application:(UIApplication *)application
39+ handleOpenURL:(NSURL *)url
40+{
41+ if (!url)
42+ return NO;
43+ viewController.searchBar.text = [url absoluteString];
44+ [viewController playFromSource:[url absoluteString]];
45+ return YES;
46+}
47+
48+- (void)applicationDidFinishLaunching:(UIApplication *)application
49+{
2150 [window addSubview:viewController.view];
2251 [window makeKeyAndVisible];
2352 }
2453
25-- (void)dealloc {
54+- (void)dealloc
55+{
2656 [viewController release];
2757 [window release];
2858 [super dealloc];
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
--- trunk/touch/Classes/ManiTouchAppDelegate.h (revision 62)
+++ trunk/touch/Classes/ManiTouchAppDelegate.h (revision 63)
@@ -1,3 +1,22 @@
1+/*
2+ * Copyright (C) 2008-2009 hkrn
3+ *
4+ * This library is free software; you can redistribute it and/or
5+ * modify it under the terms of the GNU Library General Public
6+ * License as published by the Free Software Foundation; either
7+ * version 2 of the License, or (at your option) any later version.
8+ *
9+ * This library is distributed in the hope that it will be useful,
10+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+ * Library General Public License for more details.
13+ *
14+ * You should have received a copy of the GNU Library General Public
15+ * License along with this library; if not, write to the
16+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17+ * Boston, MA 02110-1301, USA.
18+ */
19+
120 //
221 // ManiTouchAppDelegate.h
322 // ManiTouch
@@ -5,7 +24,7 @@
524 // Created by hkrn on 08/12/28.
625 // Copyright hkrn 2008. All rights reserved.
726 //
8-// $Id$
27+// $Id$
928 //
1029
1130 #import <UIKit/UIKit.h>
@@ -21,4 +40,3 @@
2140 @property (nonatomic, retain) IBOutlet ManiTouchViewController *viewController;
2241
2342 @end
24-
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Show on old repository browser