saltimer.cxx (9f62ea84) | saltimer.cxx (01367266) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 57 unchanged lines hidden (view full) --- 66 */ 67 [[NSRunLoop currentRunLoop] addTimer: AquaSalTimer::pRunningTimer forMode: NSEventTrackingRunLoopMode]; 68 } 69 } 70 else 71 { 72 SalData::ensureThreadAutoreleasePool(); 73 // post an event so we can get into the main thread | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 57 unchanged lines hidden (view full) --- 66 */ 67 [[NSRunLoop currentRunLoop] addTimer: AquaSalTimer::pRunningTimer forMode: NSEventTrackingRunLoopMode]; 68 } 69 } 70 else 71 { 72 SalData::ensureThreadAutoreleasePool(); 73 // post an event so we can get into the main thread |
74 NSPoint aPt = { 0, 0 }; | |
75 NSEvent* pEvent = [NSEvent otherEventWithType: NSApplicationDefined | 74 NSEvent* pEvent = [NSEvent otherEventWithType: NSApplicationDefined |
76 location: aPt | 75 location: NSZeroPoint |
77 modifierFlags: 0 78 timestamp: [NSDate timeIntervalSinceReferenceDate] 79 windowNumber: 0 80 context: nil 81 subtype: AquaSalInstance::AppStartTimerEvent 82 data1: (int)nMS 83 data2: 0 ]; 84 if( pEvent ) --- 47 unchanged lines hidden --- | 76 modifierFlags: 0 77 timestamp: [NSDate timeIntervalSinceReferenceDate] 78 windowNumber: 0 79 context: nil 80 subtype: AquaSalInstance::AppStartTimerEvent 81 data1: (int)nMS 82 data2: 0 ]; 83 if( pEvent ) --- 47 unchanged lines hidden --- |