• 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
help loading file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: where to place document file extensions frameworks vs. main target
  • Next by Date: Re: where to place document file extensions frameworks vs. main target
  • Previous by thread: Re: where to place document file extensions frameworks vs. main target
  • Next by thread: Re: help loading file
  • Index(es):
    • Date
    • Thread