• 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: Message from view to viewController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Message from view to viewController


  • Subject: Re: Message from view to viewController
  • From: Pierre Berloquin <email@hidden>
  • Date: Sat, 30 May 2009 17:43:43 +0200

Declaring in .h

-(void)vagTouchesBegan:(id)sender;
was my first impulse. But that's not enough.

About the memory problem, I suppose I should receive touchesBegan in the
controller and sort out what I get ?

2009/5/30 WT <email@hidden>

> 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
>



--
Blogs : http://bibliobs.nouvelobs.com/blog/jeux-litteraires
           http://pierre-berloquin.blogspot.com/

Développement durable des neurones par le jeu de réflexion
www.crealude.net

Sustainable development of neurones through mind games
www.crealude.net/us

Que fait-on pour les mal-codants ?
_______________________________________________

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

  • Follow-Ups:
    • Re: Message from view to viewController
      • From: WT <email@hidden>
References: 
 >Re: Message from view to viewController (From: Pierre Berloquin <email@hidden>)
 >Re: Message from view to viewController (From: Scott Ribe <email@hidden>)
 >Re: Message from view to viewController (From: Pierre Berloquin <email@hidden>)
 >Re: Message from view to viewController (From: WT <email@hidden>)

  • Prev by Date: Re: How to draw background image in my app window
  • Next by Date: Re: Showing more warnings possible in Xcode?
  • Previous by thread: Re: Message from view to viewController
  • Next by thread: Re: Message from view to viewController
  • Index(es):
    • Date
    • Thread