objective c - Respond to GURL apple event if application isn't running -


i have application responding 'gurl' (get url) apple events custom registered url protocol. being registered , works fine when application running, if application not running start application, not respond url api indicates should.

i'm not quite sure how have xcode attach process it's started external source, i'm not sure if application being started arguments indicating url? if not, there way determine application started gurl apple event whenever started?

i initializing handler following way:

- (void)applicationwillfinishlaunching:(nsnotification *)notification {     // register url handler     nsappleeventmanager* manager = [nsappleeventmanager sharedappleeventmanager];     [manager seteventhandler:self                  andselector:@selector(geturl:withreplyevent:)                foreventclass:kinterneteventclass                   andeventid:kaegeturl]; } 


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -