Re: Understanding the inner workings: getting to know how functions are called
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