[MeeGo-touch-dev] Soft API Break: MApplicationPage enterDisplayEvent(), createContent()
Dominik Kapusta
Dominik.Kapusta at teleca.com
Mon Aug 23 00:14:12 PDT 2010
Hello,
We found a way to deal with createContent() behind the scenes[1], so calling MApplicationPage::enterDisplayEvent() in inherited classes won't be needed starting from libmeegotouch 0.20.35 (the change affected only 0.20.34.2).
Thanks,
Dominik
[1] http://meego.gitorious.org/meegotouch/libmeegotouch/commit/5c0eaf65f8df722af92981999f19b6582f665bfd
-----Wiadomość oryginalna-----
Od: Dominik Kapusta
Wysłano: Śr 2010-08-18 15:41
Do: meego-touch-dev at meego.com
Temat: Soft API Break: MApplicationPage enterDisplayEvent(), createContent()
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/20100823/87716575/attachment-0001.html>
More information about the MeeGo-touch-dev
mailing list