Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /XspfManager/XspfMThumbnailData.m

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86 - (hide annotations) (download)
Thu Nov 19 13:52:53 2009 UTC (14 years, 5 months ago) by masaki
File size: 454 byte(s)
[Mod] モデルを変更。サムネイルデータを別エンティティに移し起動を速くした。サムネイルはメインスレッドリクエストでthumbnailDataリレーションを順次Faultさせる事で遅延生成。
1 masaki 86 //
2     // XspfMThumbnailData.m
3     // XspfManager
4     //
5     // Created by Hori,Masaki on 09/11/19.
6     // Copyright 2009 masakih. All rights reserved.
7     //
8    
9     #import "XspfMThumbnailData.h"
10    
11     #import "XSPFMXspfObject.h"
12    
13     @implementation XspfMThumbnailData
14    
15     @dynamic data;
16     @dynamic xspf;
17    
18     - (void)awakeFromFetch
19     {
20     if(self.xspf.thumbnail == nil) {
21     NSImage *thumbnail = [[[NSImage alloc] initWithData:self.data] autorelease];
22     self.xspf.thumbnail = thumbnail;
23     }
24     }
25    
26     @end

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