On May 30, 2009, at 4:40 PM, Pierre Berloquin wrote:

[theViewController vagTouchesBegan:self];
QED
There's still a warning that the view controller may not respond. But it
works seamlessly.
Can I get rid of the warning?

Yes, by declaring the method -vagTouchesBegan: in the header file of your view controller class.

Something to be cautious about when storing in the view a pointer to its view controller is that you may end up creating a retain cycle, since the view controller already retains its view. I would recommend that you read the documentation on memory management to make sure you don't create unnecessary problems for yourself.

Wagner
_______________________________________________

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