• 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: Newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question


  • Subject: Re: Newbie question
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 7 Apr 2008 19:08:13 +0200

Recheck the method declaration syntax in your book.

It's

- (NSString *)myMethodName:(type)arg;
and not
- (NSString ) *myMethodName:(type)arg;

the '*' in "NSString *" is part of the type.


Le 7 avr. 08 à 18:45, john darnell a écrit :

Hello all:

For those of you who do not like answering elementary questions, you
might want to give this message a pass.

I am making my first foray into writing Cocoa applications, and I have
created a very simple class.  The header file looks like this:

  /* Chooser */

  #import <Cocoa/Cocoa.h>

  @interface Chooser : NSObject
  {
  }

  - (NSString) *ChooseString:(int) IntVal;  //  If I comment out this
line, the error and first warning goes away
  @end

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Newbie question (From: "john darnell" <email@hidden>)

  • Prev by Date: Re: Newbie question
  • Next by Date: Re: Newbie question
  • Previous by thread: Re: Newbie question
  • Next by thread: Re: Newbie question
  • Index(es):
    • Date
    • Thread