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

Re: 2 classes


  • Subject: Re: 2 classes
  • From: Stéphane Sudre <email@hidden>
  • Date: Thu, 1 Aug 2002 12:21:33 +0200

On Thursday, August 1, 2002, at 11:54 AM, Chong Hiu Pun wrote:

In my cocoa application, I have 2 classes, A & B, where A is the main class
and B is do the calculation without UI element.
How can I
1.) instantiate class B ? (do I need to implement a constructor for class B?)
2.) Get the calculation result of B ( using getter method? But if I cannot
instantiate class B, I cannot do it either)

1.) myBInstance= [[B alloc] init]; // myBInstance=[B new];

2.) Not enough information to give a good answer.
_______________________________________________
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.

References: 
 >2 classes (From: "Chong Hiu Pun" <email@hidden>)

  • Prev by Date: Re: init function return value
  • Next by Date: Re: init function return value
  • Previous by thread: 2 classes
  • Next by thread: Re: 2 classes
  • Index(es):
    • Date
    • Thread