• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Extending NSMutableDictionary what am I doing wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Extending NSMutableDictionary what am I doing wrong?
      • From: mmalcolm crawford <email@hidden>
References: 
 >Extending NSMutableDictionary what am I doing wrong? (From: Stefan Pantos <email@hidden>)

  • Prev by Date: Re: Defining custom mime type in WebView?
  • Next by Date: Re: Error messages
  • Previous by thread: Re: Extending NSMutableDictionary what am I doing wrong?
  • Next by thread: Re: Extending NSMutableDictionary what am I doing wrong?
  • Index(es):
    • Date
    • Thread