• 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: Slower with Cocoa subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slower with Cocoa subclass


  • Subject: Re: Slower with Cocoa subclass
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Sat, 1 Nov 2003 15:05:10 +0000

On Saturday, November 1, 2003, at 02:57 pm, Lorenzo wrote:

IMP *placeObject = [myCube
instanceMethodForSelector:@selector(placeObject)];
Does placeObject refer to myCube object only or to the myCube's class
generally?

placeObject is a pointer to the -placeObject method for any object of class SBCube (it should have been

IMP *placeObject = [SBCube
instanceMethodForSelector:@selector(placeObject)];

but for some reason I thought you'd called your class "myCube").

I let you know that myCube is an object of the class SBCube, and placeObject
is a method of the SBCube class.
So in the current main class header I declared
SBCube *myCube;

And I don't understand the following statement:
myCube *cube;

As I said, I thought you'd said your class was called "myCube", but looking at your previous e-mail I can't see why I thought that. It should, of course, be SBCube.

Kind regards,

Alastair.
_______________________________________________
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: 
 >Re: Slower with Cocoa subclass (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Slower with Cocoa subclass
  • Next by Date: Re: Variables: Why one way and not another?
  • Previous by thread: Re: Slower with Cocoa subclass
  • Next by thread: Why can't I instantiate a subclass of NSArrayController?
  • Index(es):
    • Date
    • Thread