Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-21-2010, 09:26 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 2
Default DoEvents / screen not updating until method is done.

Hi, I am new to IPhone Development...

I have am writing a app similar to a piano keyboard, I am recording touch events of UIButton's but when I go to "play" them back, by setting the .highlighted property of the button to true, and preforming the event that plays the sound, the buttons dont change color. I tried inverting the highlighted property on hunch and it appears it does the UI update after we are done with the event. I am guessing the UI thread is waiting for the processing thread to be done - or I am doing something basic wrong.

Typically in other languages I would call a DoEvents or a Application.ProcessMessages() here, to test that out, but per other members of this forum - a call like that does not exist.

Does anyone have any ideas?

-Deva
devavejay is offline   Reply With Quote
Old 02-22-2010, 12:43 AM   #2 (permalink)
i m on the edge
 
Join Date: Jan 2010
Posts: 13
Default

Quote:
Originally Posted by devavejay View Post
Hi, I am new to IPhone Development...

I have am writing a app similar to a piano keyboard, I am recording touch events of UIButton's but when I go to "play" them back, by setting the .highlighted property of the button to true, and preforming the event that plays the sound, the buttons dont change color. I tried inverting the highlighted property on hunch and it appears it does the UI update after we are done with the event. I am guessing the UI thread is waiting for the processing thread to be done - or I am doing something basic wrong.

Typically in other languages I would call a DoEvents or a Application.ProcessMessages() here, to test that out, but per other members of this forum - a call like that does not exist.

Does anyone have any ideas?

-Deva

i tried using the highlighted property but it doesn work. donno y..

anyways y don u create an IBAction and connect it to button touch down. that should do the job for ur Keyboard app.
kamath.bharath is offline   Reply With Quote
Reply

Bookmarks

Tags
doevents, iphone, uibutton, uibutton.highlighted

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 241
15 members and 226 guests
ADY, AragornSG, Dani77, Dattee, Duncan C, fkmtc, HDshot, HemiMG, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:17 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0