• 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
Pre declaration of methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pre declaration of methods


  • Subject: Pre declaration of methods
  • From: Jérôme Paschoud <email@hidden>
  • Date: Sun, 06 Apr 2003 17:09:10 +0200

Hello everybody,

I'd like to create a class and use in the implementation some privates
methods that only make my code clearer and that I don't want other classes
to see. So I just didn't put the methods declarations in the header of the
class. But when I do that if I'm using a "firstMethod" that calls a
"secondMethod" that is a few lines down, I'm getting a:

warning: `myClass' does not respond to `secondMethods'

But the code compile sucessfully and works as expected.

Is that possible to pre declare "secondMethod" so I can write my class in a
logical order and not in a "methods call priority order".

Thanks in advance for the help




_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Tilicharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1hre messagerie instantanie de France
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Pre declaration of methods
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Error from Debugger
  • Next by Date: Re: Native Cocoa vs Java performance question
  • Previous by thread: Error from Debugger
  • Next by thread: Re: Pre declaration of methods
  • Index(es):
    • Date
    • Thread