On Aug 11, 2009, at 8:47 AM, Kirk Swenson wrote:
As the comment suggests, myTextFieldEditor is an instance variable. It's released in the dealloc method. It's worth pointing out that according to the documentation, "This method may be called multiple times while a control is first responder. Therefore, you must return the same field editor object for the control while the control is being edited." In other words, the pointer has to be cached -- creating a new one on every call would violate the requirements of the method.

Kirk,

right, sorry for causing confusion. Should have read the code & comments more carefully.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to