• 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
Building NSObject question/Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Building NSObject question/Help
      • From: Andrew White <email@hidden>
  • Prev by Date: Re: Problem of resolution with JPEGs
  • Next by Date: NSData containing non-english to NSTextView
  • Previous by thread: Re: NSSavePanel crashing on instantiation [SOLVED].
  • Next by thread: Re: Building NSObject question/Help
  • Index(es):
    • Date
    • Thread