Ignore:
Timestamp:
Jan 23, 2010, 12:05:40 AM (12 years ago)
Author:
livings124
Message:

#2787 allow dragging of URLs onto the dock icon once again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9958 r9996  
    346346        tr_sessionSetRPCCallback(fLib, rpcCallback, self);
    347347       
    348         //register for dock icon drags
    349         [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
    350             forEventClass: kCoreEventClass andEventID: kAEOpenContents];
    351        
    352         //register for magnet URLs
    353         [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
    354         forEventClass: kInternetEventClass andEventID: kAEGetURL];
    355        
    356348        [GrowlApplicationBridge setGrowlDelegate: self];
    357349       
     
    578570{
    579571    [NSApp setServicesProvider: self];
     572   
     573    //register for dock icon drags (has to be in applicationDidFinishLaunching: to work)
     574    [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
     575        forEventClass: kCoreEventClass andEventID: kAEOpenContents];
     576   
     577    //register for magnet URLs
     578    [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
     579        forEventClass: kInternetEventClass andEventID: kAEGetURL];
    580580   
    581581    //auto importing
Note: See TracChangeset for help on using the changeset viewer.