Re: When is editWithFrame:... used?

Christiaan Hofman <[email protected]> Thu, 8 Dec 2011 01:20:57 +0100
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Dec 8, 2011, at 1:12, Christiaan Hofman wrote:

>=20
> On Dec 8, 2011, at 0:51, Matt Neuburg wrote:
>=20
>>=20
>> On Dec 7, 2011, at 12:00 PM, [email protected] wrote:
>>=20
>>> Message: 2
>>> Date: Wed, 7 Dec 2011 01:17:53 +0100
>>> From: Christiaan Hofman <[email protected]>
>>> Subject: Re: When is editWithFrame:... used?
>>>=20
>>> can read the documentation
>>=20
>> Can you also search it? When I search the documentation on =
editWithFrame:, I find 8 sample code projects that actually show =
editWithFrame: in use. I assure you that, for example, in the =
DragNDropOutlineView example, in the ImageAndTextCell class, =
editWithFrame *is* called. m.
>>=20
>> --
>> matt neuburg, phd =3D [email protected], http://www.apeth.net/matt/
>> pantes anthropoi tou eidenai oregontai phusei
>> Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
>> Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook
>> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
>> TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
>>=20
>=20
> Are you sure about that? Did you test that? I really don't see that. I =
had not looked at that particular sample code for a long time, but I =
sure did test in my own subclass (which is very similar to =
ImageAndTextCell), and this method was not called, at least not after a =
mouseDown. As I implied. Otherwise, still the question is WHEN?
>=20
> Christiaan
>=20

And I can confirm this with DragNDropOutlineView.

And there's a difference between "show in use" and "subclass it". The =
sample code only does the latter, that does not mean that it is in use, =
and it is never called anywhere in the sample code. The sample code also =
does not say what one should do to have it called, so it most definitely =
does not qualify as "show in use".

Christiaan