[MeeGo-touch-dev] Soft API Break: MApplicationPage enterDisplayEvent(), createContent()

Dominik Kapusta Dominik.Kapusta at teleca.com
Wed Aug 18 06:41:02 PDT 2010


Description: createContent() is called in MApplicationPage::enterDisplayEvent()
Version: 0.20.34.2
Impact: Medium

Affected: Applications that reimplement enterDisplayEvent() in their application pages

Git branch: master
Code review: http://meego.gitorious.org/meegotouch/libmeegotouch/merge_requests/311
Contact: Dominik Kapusta

Hello,

commit 434962fec0fc0e722f730c275705d75fa17570da in libmeegotouch[1] introduces a behavioral change in MApplicationPage, related to createContent() and enterDisplayEvent().

>From now on, MApplicationPage::createContent() is called from within MApplicationPage::enterDisplayEvent(). It means that if your inherit MApplicationPage and reimplement enterDisplayEvent(), you should call the base class implementation at the beginning of your method. This way you ensure invoking createContent() and having your content in place.

Failing to do so may result in crashes when accessing components created in createContent() (as that method would never get called).


Regards,
Dominik



[1] http://meego.gitorious.org/meegotouch/libmeegotouch/commit/434962fec0fc0e722f730c275705d75fa17570da

 
Dominik Kapusta

 
Teleca
Kasprzaka 6, 91-083 Lodz, Poland
Phone: +48422881500, Fax: +48422094951
Mobile: +48669972253
Dominik.Kapusta at teleca.com
http://www.teleca.com/
 
Teleca Poland Sp. z o.o., Sad Rejonowy dla Lodzi-Srodmiescia w Lodzi, XX Wydzial Krajowego Rejestru Sadowego | KRS: 0000283968 | NIP: 725-19-45-575 | Kapital zakladowy: 50.000,00
 
Follow what's going on at Teleca's blog on http://www.whatsyourideaoftomorrow.blogspot.com/.
 
The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly prohibited.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.meego.com/pipermail/meego-touch-dev/attachments/20100818/e02bd141/attachment.html>


More information about the MeeGo-touch-dev mailing list