Re: Extending NSMutableDictionary what am I doing wrong?
Re: Extending NSMutableDictionary what am I doing wrong?
- Subject: Re: Extending NSMutableDictionary what am I doing wrong?
- From: Greg Hurrell <email@hidden>
- Date: Sun, 29 Feb 2004 14:09:32 +0100
El 26/02/2004, a las 14:04, Stefan Pantos escribis:
The code is:
-------------------- Page.h ------------------------
#import <Foundation/Foundation.h>
@interface Page : NSMutableDictionary
{
}
- (id)initWithTitle:(NSString*)title andText:(NSData*)text;
- (NSString*)title;
- (NSData*)text;
@end
I can't for the life of me think why you want a "Page" object that
behaves like a dictionary...
@interface Page: NSObject
{
NSString *title;
NSData *text;
// and if you insist on having dictionary-like qualities:
NSMutableDictionary *mutableDictionary;
}
- (id)initWithTitle:(NSString *)title andText:(NSData *)text;
- (void)setTitle:(NSString *)title;
- (NSString *)title;
- (void)setText:(NSData *)text;
- (NSData *)text;
// once again, I have no idea what you want this for
- (void)setMutableDictionary:(NSMutableDictionary *)mutableDictionary;
- (NSMutableDictionary *)mutableDictionary;
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.