ObjFW  Check-in [c5901029a0]

Overview
Comment:OFZIP: Cast app delegate to OFZIP*
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c5901029a0479dd5d83e16fcaab776abde817ee88f5d2510b3604de4a112bc4e
User & Date: js on 2016-06-04 22:31:38
Other Links: manifest | tags
Context
2016-06-05
00:01
Add OFKeyValueCoding check-in: 3ad1f2b268 user: js tags: trunk
2016-06-04
22:31
OFZIP: Cast app delegate to OFZIP* check-in: c5901029a0 user: js tags: trunk
18:49
OFMapTable: Rename valueForKey to objectForKey check-in: 1ba9c051a6 user: js tags: trunk
Changes

Modified utils/ofzip/GZIPArchive.m from [d0b4b1bf2e] to [3a7c6d754a].

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#endif
}

@implementation GZIPArchive
+ (void)initialize
{
	if (self == [GZIPArchive class])
		app = [[OFApplication sharedApplication] delegate];
}

+ (instancetype)archiveWithStream: (OF_KINDOF(OFStream*))stream
{
	return [[[self alloc] initWithStream: stream] autorelease];
}








|







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#endif
}

@implementation GZIPArchive
+ (void)initialize
{
	if (self == [GZIPArchive class])
		app = (OFZIP*)[[OFApplication sharedApplication] delegate];
}

+ (instancetype)archiveWithStream: (OF_KINDOF(OFStream*))stream
{
	return [[[self alloc] initWithStream: stream] autorelease];
}

Modified utils/ofzip/TarArchive.m from [c120b18a1b] to [6c1d27db62].

49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#endif
}

@implementation TarArchive
+ (void)initialize
{
	if (self == [TarArchive class])
		app = [[OFApplication sharedApplication] delegate];
}

+ (instancetype)archiveWithStream: (OF_KINDOF(OFStream*))stream
{
	return [[[self alloc] initWithStream: stream] autorelease];
}








|







49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#endif
}

@implementation TarArchive
+ (void)initialize
{
	if (self == [TarArchive class])
		app = (OFZIP*)[[OFApplication sharedApplication] delegate];
}

+ (instancetype)archiveWithStream: (OF_KINDOF(OFStream*))stream
{
	return [[[self alloc] initWithStream: stream] autorelease];
}

Modified utils/ofzip/ZIPArchive.m from [7aa5aa86b6] to [5e4a3c32c2].

50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#endif
}

@implementation ZIPArchive
+ (void)initialize
{
	if (self == [ZIPArchive class])
		app = [[OFApplication sharedApplication] delegate];
}

+ (instancetype)archiveWithStream: (OF_KINDOF(OFStream*))stream
{
	return [[[self alloc] initWithStream: stream] autorelease];
}








|







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#endif
}

@implementation ZIPArchive
+ (void)initialize
{
	if (self == [ZIPArchive class])
		app = (OFZIP*)[[OFApplication sharedApplication] delegate];
}

+ (instancetype)archiveWithStream: (OF_KINDOF(OFStream*))stream
{
	return [[[self alloc] initWithStream: stream] autorelease];
}