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

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

  • Follow-Ups:
    • Re: help loading file
      • From: simone gabbriellini <email@hidden>
References: 
 >Re: help loading file (From: Anish Kumar <email@hidden>)

  • Prev by Date: Re: help loading file
  • Next by Date: Re: affine transformation of bitmap images
  • Previous by thread: Re: help loading file
  • Next by thread: Re: help loading file
  • Index(es):
    • Date
    • Thread