Last change
on this file since 225 was 103, checked in by Nicholas Riley, 22 years ago |
Localization, bug fixes
|
File size:
534 bytes
|
Rev | Line | |
---|
[53] | 1 | //
|
---|
| 2 | // NSDictionary-NJRExtensions.m
|
---|
| 3 | // Pester
|
---|
| 4 | //
|
---|
| 5 | // Created by Nicholas Riley on Tue Nov 19 2002.
|
---|
| 6 | // Copyright (c) 2002 Nicholas Riley. All rights reserved.
|
---|
| 7 | //
|
---|
| 8 |
|
---|
| 9 | #import "NSDictionary-NJRExtensions.h"
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | @implementation NSDictionary (NJRExtensions)
|
---|
| 13 |
|
---|
| 14 | - (id)objectForRequiredKey:(NSString *)key;
|
---|
| 15 | {
|
---|
| 16 | id obj = [self objectForKey: key];
|
---|
[103] | 17 | NSAssert1(obj != nil, NSLocalizedString(@"Dictionary does not contain object for required key '%@'", "Assertion failure in -[NSDictionary objectForRequiredKey:]"), key);
|
---|
[53] | 18 | return obj;
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | @end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.