Re: help loading file
Re: help loading file
- Subject: Re: help loading file
- From: James McConnell <email@hidden>
- Date: Fri, 04 Mar 2005 07:51:44 -0600
On 3/4/05 7:20 AM, "Anish Kumar" <email@hidden> wrote:
> Hi
>
> I think the problem is in this part of the code...
>
> [messaggioInvito setString:[[temp messaggioInvito] string]];
>
> The correct code is....
>
> [messaggioInvito setString:[[self messaggioInvito] string]];
>
>
> because the method "messaggioInvito" is declared in the file in which you are
> calling it, so you have to use "self".
>
> The error "selector not recognized" comes only when you try to call a method
> that doesn't exists or that doesn't belong to the object for which you are
> passing.
>
>
> Hope this helps.
>
> regards,
> Anish
> Software Engineer
> http://www.qubyx.com/
That's most likely it. Also make sure that your NSTextView is Editable. If
you set it to be uneditable in IB, you have to do this:
[messaggioInvito setEditable:YES];
[messaggioInvito insertText:[[self messaggioInvito] string]];
[messaggioInvito setEditable:NO];
Just to make sure that you can actually insert text. I got bit by that in a
recent project, thought I'd throw it out there.
James
_______________________________________________
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