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

Similar Threads
thread Thread Starter Forum Replies Last Post
creating methods with Completion Handler hassoon iPhone/iPad Programming 2 Aug 20, 2013 03:10 AM
Using a Hyphen In A URL vs. Using A URL with .us TLD steiney Web Design and Development 32 Jul 12, 2013 02:30 PM
Chrome: Using GMail as Mail Handler badman89 OS X 0 Mar 17, 2013 09:41 AM
Airplay event handler? davelarue iPhone/iPad Programming 1 Mar 8, 2013 08:30 AM

Forum Jump

All times are GMT -5. The time now is 05:05 PM.

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

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