RE: Unarchive consistency errors
RE: Unarchive consistency errors
- Subject: RE: Unarchive consistency errors
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 26 Apr 2004 11:48:30 -0400
>
>> [coder encodeObject:codeView]; // NSMutableArray
>
codeView isn't too suspicious :-) it's just an array that holds objects
>
for an NSTableView elsewhere in the app (the objects being "code
>
snippet" strings, hence the name).
Bad name. Suggests the data is dependent on the view somehow. How about
"codeSnippets"?
>
>
I did notice in the apple documentation that if the unarchiver doesn't
>
know about a class it will return an exception, so i added the header
>
for the objects that get stored in the codeView to the class that does
>
the unarchiving, but to no avail.
Do all of the objects in codeView know how to archive themselves, i.e.,
conform to the NSCoder protocol? Your custom objects need to implement the
protocol. The same holds true for any other container you are archiving.
>
I clicked the breakpoints toolbar icon in debugger, clicked the "New
>
Breakpoint" button in the window that appeared and added [NSException
>
raise], which appeared under a toggled heading of "Symbolic
>
Breakpoints".
You want to type it this way: -[NSException raise]
That is, put a hyphen in front.
Jonathan
_______________________________________________
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.