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
Post a Comment