• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setEnabled Not Working on iPhone

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Has anyone else ran into an issue where a component's (UIButton for example) setEnabled method doesn't work on the iphone? It seems to work fine in the emulator but not on the iphone.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So it would seem the issue is a bit bigger. In a particular action I disable some buttons, which is visibly noticable. The problem is that if I click on the buttons while they are disabled, once they are enabled, their pressed event fires. So it is like the iphone is caching tap events of sorts and then notifying the buttons once they are enabled again.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe your Action is hooked up to the wrong event?

The iPhone won't cache touches, it just sends messages, and if there isn't anything available to accept the message it just disappears and is gone.

Mark
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
onestly...I got the iPod Touch (just like the iPhone, but with no phone feature). It serves my purpose. I didn't need a cell phone, just wanted the iPod and extra features. I get WiFi Internet (basically all internet sites are accessible in some form), it plays music, videos, podcasts, you can download anything from iTunes directly to the iPod (without having to use a computer)...it's really nice.
I would figure the iPhone would be just like the iPod Touch, except with a phone. I've seen the iPhone and it looks to me like the ear piece is kinda small...could make for bad sound. If you are a texter...you may not like it. The keyboard is quite small...though, I don't mind it...I use Facebook.com on my iPod all the time. I'm 100% sure the iPhone doesn't come as pay as you go...it's a contract phone. Sorry.
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

angel mahe wrote:onestly...I got the iPod Touch (just like the iPhone, but with no phone feature). It serves my purpose. I didn't need a cell phone, just wanted the iPod and extra features. I get WiFi Internet (basically all internet sites are accessible in some form), it plays music, videos, podcasts, you can download anything from iTunes directly to the iPod (without having to use a computer)...it's really nice.
I would figure the iPhone would be just like the iPod Touch, except with a phone. I've seen the iPhone and it looks to me like the ear piece is kinda small...could make for bad sound. If you are a texter...you may not like it. The keyboard is quite small...though, I don't mind it...I use Facebook.com on my iPod all the time. I'm 100% sure the iPhone doesn't come as pay as you go...it's a contract phone. Sorry.



Huh? The original post is about developing an app and Objective-C api. ;)

Mark
reply
    Bookmark Topic Watch Topic
  • New Topic