Re: What triggs dataRepresentationOfType?
Re: What triggs dataRepresentationOfType?
- Subject: Re: What triggs dataRepresentationOfType?
- From: Bob Ueland <email@hidden>
- Date: Wed, 17 Oct 2007 07:00:56 -0700 (PDT)
Thanks Charles and I.S. for your answers, it's clear now what happens.
With regards to I.S. I have some small comments.
I.S. wrote:Any time you want to know the answer to questions like this your
first stop should be the documentation.
I did actually begin by going to the 'NSDocument Class Reference' and found the following 'explaination':
dataRepresentationOfType:
A
primitive method overridden by subclasses to return a data object that
represents the data of the receiver in a given type. (Deprecated. Use
dataOfType:error: instead.)
- (NSData *)dataRepresentationOfType:(NSString *)aType
Discussion
A
primitive method overridden by subclasses to return a data object that
represents the data of the receiver in a given type (aType). The
default implementation raises an NSInternalInconsistencyException. This
method is invoked by the default implementation of
fileWrapperRepresentationOfType:.
aType is the type name corresponding to the value of the CFBundleTypeName entry in the document type's Info.plist dictionary.
I
did not understand this. Also it did not answer my question. Then I did
look at the 'companion guide' called 'Document-Based Applications
Overview'. I downloaded the pdf file and opened it and saw that it was
67 pages long. So I did not look inside it because I'm not yet savvy
enough to find my way around (this was probably mistake. I should at
least have glanced through the TOC and then maybe I would have spotted
the heading Message 'Flow in the Document Architecture'.)
Then I went and
searched on Internet and then in the forum. Since I did not find any
answer, I posted a question and got a nice explanation from Charles.
I.S. wrote: I don't remember where everything is and what
it's called, but in five seconds, I had detailed answers to your
question. It sure beats waiting for an answer from the list. :-)
That's
because you are Cocoa Savvy. Newbies like me can't find such an answer
in 10 minutes, less alone in five seconds. I know that I must
eventually get acquainted with refdocs, but right now I'm in no
position to do that, so I nibble small sections and I'm very happy when
I understand whole pages.
However thanks for the encouragement.
Every time I do ask something from the forum I learn a lot :). So I
don't mind waiting for the answer.
Bob
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden