• 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: What is NSConcreteMutableData?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is NSConcreteMutableData?


  • Subject: Re: What is NSConcreteMutableData?
  • From: Guy English <email@hidden>
  • Date: Fri, 26 Nov 2004 15:11:33 -0500

NSData is a class cluster. See the developer documentation or Google
for a detailed explanation.

Basically initing an NSData class will actually give you a class more
tailored for what you'd like to use it for. It's an under the hood
optimization. All the classes in a class cluster will behave the same
way but their implementations will be optimized depending one the
usage they expect. You're looking at NSConceteMutableData which means
that you've got the actual class (hence the Concrete bit) that'll
manage mutable data. NSString is implemented in the same way and
you're likely to see a number of different classes under the hood of
an NSString.

Hope that helps a little,
Guy


On Fri, 26 Nov 2004 11:17:31 -0800, Frederick C. Lee
<email@hidden> wrote:
> Greetings:
>         I'm deciphering a NSArrayController example that has a NSTextView
> field mapped to the key 'xnotes'.     The example saves/reads data just
> fine.    So I go into the debugger to explore the data array the is
> read/write from disk.   The following is what I've found for the
> 'xnotes' data key for the NSTextView:
>
> (gdb) po [[[toDos objectAtIndex:1] objectForKey:@"xnotes"] class]
> NSConcreteMutableData
> (gdb)
>
> I tried to read the data using [xnotes string] but didn't work.   The
> object didn't recognize the method.   So I asked the gdb to reveal the
> class to be: 'NSConcreteMutableData' which appears to be an oxymoron.
>
> Any ideas?
>
> Ric.
>
>  _______________________________________________
> 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
>
 _______________________________________________
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

References: 
 >What is NSConcreteMutableData? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Waling window list in visible window order
  • Next by Date: Re: NSArray operator implementing
  • Previous by thread: What is NSConcreteMutableData?
  • Next by thread: Waling window list in visible window order
  • Index(es):
    • Date
    • Thread