Victor Kazarinov
unread,Jan 14, 2012, 8:10:59 AM1/14/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kairos Webmail
Hi Vincent,
Perhaps you can point me to some http resources and documents related
CPCoding protocol? I faced with problem in kairos with SMPagerView. It
is GUI control to select page for mail. I want to get current page
number from SMPagerView in MailController.j. I made getter method in
SMPagerView which return current page. In MailController.j I store
reference to created SMPagerView (it is created in toolbar). And later
I use this reference to access SMPagerView, e.g. I call [_pagerView
getPage]. But result page number is wrong. I investigated and found
that it refers _pagerView to wrong instance of SMPagerView. I found
that in each visual object we have implemented CPCoding protocol. I
debugged it and found that object is encrypted into byte stream and
unencrypted later. I don't know who call this (seems like Cappuccino,
but I can't find any docs related this at cappuccino site). As result,
we have in _pagerView variable stored reference to our SMPagerView
which is invisible, but at screen in toolbar of kairos is shown
another instance of SMPagerView, restored from byte stream. That
another instance of SMPagerView is not associated with _pagerView
variable, because this is different (second) instance of SMPagerView
object. So there is 2 controls, one invisible and one visible. Of
course I can imagine another ways to access this visible control
without direct reference to it, but I assume that right way should be
is to use simple direct call like this: [_pagerView getPage] which is
not works currently.
Regards,
Victor Kazarinov