ObjFW  Diff

Differences From Artifact [034710c781]:

  • File src/OFDictionary.m — part of check-in [f816d1ec7c] at 2016-06-05 15:11:04 on branch trunk — Move -[setValue:forKey:] to OFDictionary

    If this is only overridden in OFMutableDictionary, this would lead to
    inconsistent behavior, as it could be called on an OFDictionary as well
    due to the fact that -[setValue:forKey:] is defined in OFObject.
    Instead, if the dictionary is immutable, an OFUndefinedKeyException is
    thrown. (user: js, size: 16237) [annotate] [blame] [check-ins using]

To Artifact [3f825e393b]:


116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133

- (void)release
{
}

- (void)dealloc
{
	OF_UNRECOGNIZED_SELECTOR

	/* Get rid of a stupid warning */
	[super dealloc];
}
@end

@implementation OFDictionary
+ (void)initialize
{
	if (self == [OFDictionary class])







<
|
<
<







116
117
118
119
120
121
122

123


124
125
126
127
128
129
130

- (void)release
{
}

- (void)dealloc
{

	OF_DEALLOC_UNSUPPORTED


}
@end

@implementation OFDictionary
+ (void)initialize
{
	if (self == [OFDictionary class])