• 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: Understanding the inner workings: getting to know how functions are called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Understanding the inner workings: getting to know how functions are called


  • Subject: Re: Understanding the inner workings: getting to know how functions are called
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 22 Jan 2008 16:56:56 +0000

On 22 Jan 2008, at 16:05, Mattias Arrelid wrote:

Sometimes when I subclass an existing Cocoa class, I wonder how its methods are called; when in time, from what other function (possible from another instance of another class) etc.

[snip]

Could anyone point me in the right direction here? I'm open to all suggestions...

In addition to the suggestions others have made, check the docs; one or two of the Guide documents contain detailed message flows, which can be quite informative.


If you had a specific message or class in mind, it might also be worth asking the list as someone may already be able to tell you whatever it is you need to know. (That's not to say that you shouldn't try to work it out for yourself first, of course...)

Also, on a cautionary note, unless this kind of thing is well-defined, either by the documentation or by the design of the objects in question, it might not be a good idea to rely on otherwise unrelated messages firing in a particular order, or on a particular method only being called in a particular context.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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: 
 >Understanding the inner workings: getting to know how functions are called (From: Mattias Arrelid <email@hidden>)

  • Prev by Date: IOServiceAddMatchingNotification
  • Next by Date: Re: Understanding the inner workings: getting to know how functions are called
  • Previous by thread: Re: Understanding the inner workings: getting to know how functions are called
  • Next by thread: Re: Understanding the inner workings: getting to know how functions are called
  • Index(es):
    • Date
    • Thread