Re: help loading file
Re: help loading file
- Subject: Re: help loading file
- From: simone gabbriellini <email@hidden>
- Date: Fri, 4 Mar 2005 18:34:58 +0100
thank you all,
but I'm still here...
I put my unarchived data in
temp = [NSUnarchiver unarchiveObjectWithData:newData];
I decode my variable using:
messaggioInvito = [[coder decodeObject] retain];
I look if temp is not empty and then I call a method and I pass it the variable
[self setMessaggioInvito:[temp messaggioInvito]];
my problem is this damned method setMessaggioInvito which I implemented as:
-(void)setMessaggioInvito:(NSTextView *)ilMessaggio
{
[messaggioInvito insertText:[ilMessaggio string]];
}
but in my GUI nothing happens and I have the same error:
2005-03-04 18:33:02.788 gestore[5580] *** -[NSCFString string]: selector not recognized
2005-03-04 18:33:02.791 gestore[5580] *** -[NSCFString string]: selector not recognized
very very sad...
simone
Il giorno 04/mar/05, alle 18:14, simone gabbriellini ha scritto:
thank you, this helps me a lot!!!
simone
Il giorno 04/mar/05, alle 17:52, Jeremy French ha scritto:
When you get a compiler warning like the following:
"NSTextView may not respond to inserText"
double click on the warning to take you to line in your code that has the problem.
The above warning means you are sending the message "inserText" to an object whose class is "NSTextView", and that the method "inserText" does not exist. The subtle phrase "may not respond" means there is no such method. Most likely, you have mispelled the method name. (You probably meant to type "insertText".)
Are you using Code Sense to help you spell?
Choose XCode -> Preferences, and select the Navigation panel. Make sure you have Code Sense enabled. All checkboxes for Code Sense should be checked.
For more information on Code Sense, choose HELP -> XCode Help. Select the the topic Editing Files -> Use Code Completion.
---
On Mar 4, 2005, at 10:13 AM, simone gabbriellini wrote:
I did, and I tried it but my compiler log says:
"NSTextView may not respond to inserText"
and I don't understand why...
_______________________________________________
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