12-21-2010 10:07 PM
Thanks for all the replies guys. I had suspected maybe it was the 0.9.0 SDK I was using. I had not bothered updating to 0.9.1 since it (supposedly) didn't have any fixes relevant to me in it.
I'll go get it now.
12-22-2010 07:11 AM
i just saw this thread and you guys are hilarious haha!
im not insane... well maybe a little but just really wanna push the playbook to its limits and get people to crank out as many great apps as possible so we're ready for launch day! as for creating and testing libraries of code and making it available to the community im up for it! whatever it takes for people to push forward playbook app development . let me know any more details!
and yeah sorry for further derailing the topic hah. good luck skijunkie!
03-05-2011 03:57 PM
Is it possible to programmatically open the Picker (by default it requires click into the picker). I was looking for picker.open or picker.setOpen but cannot find anything like that.
03-05-2011 04:59 PM
there are two ways of doing this. the first method is doing it the way that QNX intended and it is by setting the isOpen property of the picker to true. This will programatically open up the picker for you. the drawback however is you cant close the picker anymore using mouseclicks. meaning even if you click elsewhere like on the stage, it will not close the picker for you. you have to use the same property again and set it to false to close the picker. in theory, you should be able to attach a listener to the stage and do isOpen = false and it will mimic the original functionality.
the second approach is more crude. you can do a picker.dispatchEvent(new MouseEvent(MouseEvent.CLICK)) and this will emulate a mouse click onto the picker and it will cause it to open. the drawback of this method is, you must wait till the picker is fully loaded. if you do it rite away, it will not respond to the psuedo click. its best to attach this to another event listener since the picker would already be loaded.
hope that sheds some light, good luck!
03-05-2011 05:44 PM
Aaah, isOpen is EXACTLY what I wanted and works perfectly! (not sure how I missed it ;-) Million thanks JRab.