Building NSObject question/Help
Building NSObject question/Help
- Subject: Building NSObject question/Help
- From: Mark Thomas <email@hidden>
- Date: Mon, 14 Mar 2005 22:45:06 +0000
- Organization: Coderus Ltd
Hi,
I'm presently using a NSDictionary where I'm storing 2 NSStrings (value
and key values), but I'm going to need to store more than just a NSString
for the values part, so I thought I need either a store a struct or better
still a NSObject.
As I guess if use a NSObject so storing this, and when the NSDictionary is
destroyed, it will call the destructor methods of my NSObject, so while I
know how I would do this in C++, can somebody give me some points how I
would do this in objective-c, looking at documentation do I just need to add
a dealloc method to my NSObject ???.
Also I use this NSDictionary will the standard preference of the
application, is there a way easily where I could filter which of my
NSObjects actually get store instead of storing the whole NSDictionary. I
guess a toString method is needed ??? - Anybody know.
Thanks in advance
Mark.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden