help loading file
help loading file
- Subject: help loading file
- From: simone gabbriellini <email@hidden>
- Date: Fri, 4 Mar 2005 13:08:23 +0100
Hello list,
I have this error:
2005-03-04 13:06:07.708 gestore[4104] *** -[NSCFString string]: selector not recognized
2005-03-04 13:06:07.780 gestore[4104] *** -[NSCFString string]: selector not recognized
from this code:
-(NSTextView *)messaggioInvito
{
return messaggioInvito;
}
- (BOOL)loadDataRepresentation:(NSData *)newData ofType:(NSString *)aType
{
// Insert code here to read your document from the given data. You can also choose to override -loadFileWrapperRepresentation:ofType: or -readFromFile:ofType: instead.
if([aType isEqualToString:@"invitiEase"]){
MyDocument *temp;
temp = [NSUnarchiver unarchiveObjectWithData:newData];
if(temp){
// HERE IS MY PROBLEM!!! I CANNOT UNDERSTAND HOW TO IMPLEMENT THIS METHOD
[messaggioInvito setString:[[temp messaggioInvito] string]];
return YES;
}
}
return NO;
}
- initWithCoder:(NSCoder *)coder
{
// decodifica il file precedentemente codificato
messaggioInvito = [[coder decodeObject] retain];
titoloInvito = [[coder decodeObject] retain];
contenutoInvito = [[coder decodeObject] retain];
immagineInvito = [[coder decodeObject] retain];
return self;
}
can someone help to implement this little method?
any help is more than welcome
simone _______________________________________________
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