Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /XspfManager/XspfMMainThreadRequest.m

Parent Directory Parent Directory | Revision Log Revision Log


Revision 95 - (hide annotations) (download)
Sun Nov 22 04:46:20 2009 UTC (14 years, 4 months ago) by masaki
File size: 609 byte(s)
[Mod] XspfMMainThreadRequestの遅延時間をサブクラスで変更可能にした。
1 masaki 85 //
2     // XspfMMainThreadRequest.m
3     // XspfManager
4     //
5     // Created by Hori,Masaki on 09/11/18.
6     // Copyright 2009 masakih. All rights reserved.
7     //
8    
9     #import "XspfMMainThreadRequest.h"
10    
11    
12     @implementation XspfMMainThreadRequest
13     - (void)fire
14     {
15     [self doesNotRecognizeSelector:_cmd];
16     }
17 masaki 95 - (NSTimeInterval)sleepTime
18     {
19     return 0.0;
20     }
21 masaki 85 - (void)fireInMainThread:(id)dummy
22     {
23     [self fire];
24     }
25     - (void)operate
26     {
27 masaki 95 [NSThread sleepForTimeInterval:[self sleepTime]];
28 masaki 85 [self performSelectorOnMainThread:@selector(fireInMainThread:) withObject:nil waitUntilDone:YES];
29     }
30     -(void)terminate
31     {
32     [self doesNotRecognizeSelector:_cmd];
33     }
34     @end

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26