Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 2, 2009, 08:10 AM   #1
satyam90
macrumors regular
 
Join Date: Jul 2007
Location: Bangalore, India
Send a message via Yahoo to satyam90
Registing a URL handler with your application

I want to add URL handler for my application. On searching google, I found some information.
In my application, I am following the procedure mentioned in the website Registering URL handler

In the method
Code:
- (void)getUrl:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent
I just added "NSLog" statement to print the URL and monitoring the console log.

I compiled the code in "Release" mode. Now for running the application, I open safari browser and entered "myapp://some_action_or_resource", then press "Enter". Now its opening the application.
I expected "some_action_or_resource" in the console log.
But its not printing the URL. Do I have to do anything in addition to get the URL printed in console log. If I get the URL, I will do other processing needed.
satyam90 is offline   0 Reply With Quote
Old Jun 3, 2009, 01:38 AM   #2
satyam90
Thread Starter
macrumors regular
 
Join Date: Jul 2007
Location: Bangalore, India
Send a message via Yahoo to satyam90
I found the solution.

In my code I am registering the event in applidcationDidFinishLaunching.
To solve this issue, it must be done in "init" method.

--Satyam.
satyam90 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Are you happy with your MBA after upgrading to Lion? saintforlife MacBook Air 25 Nov 21, 2011 05:26 PM
Linkable - a free URL forwarder from your desktop browser to your iOS device studio-2-1-2 iPhone and iPod touch Apps 1 Oct 2, 2010 05:48 AM
iChat aim:// URL handler not working shamanskyh Mac Applications and Mac App Store 0 Oct 16, 2009 10:56 PM
Problem in Building your Application with Xcode for Distribution iphonejudy iPhone/iPad Programming 1 Feb 3, 2009 08:40 AM
Discover URL Accessed by an Application purplelizzard OS X 2 Sep 25, 2008 05:32 PM


All times are GMT -5. The time now is 02:26 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC