wlh99
Apr 26, 08:59 PM
After that I implement a Cancel method pointing to sender (button)
So, my goal is to use 1 start button and 1 cancel button.. and just do their actions. I have set up a the start button to start both timers, obviously both start their countdown at the same time which is not good.
I want to tell one timer to start and if I press cancel, invalidate it. Then If I press start again, call the second timer. (I do this because I read that you can't reuse a timer after you invalidate it).
Some people have suggested to use Booleans like true or false, or conditions. What do you think?
What if after pressing the start button, you create a timer and start it. Then pressing the cancel button invalidates and releases it. Then pressing the start button would create another timer, using the same pointer.
Totally untested and probably broken code below, but should demonstrate the idea:
-(IBAction)startButton:(id) sender {
// myTimer is declared in header file ...
if (myTimer!=nil) { // if the pointer already points to a timer, you don't want to create a second one without stoping and destroying the first
[myTimer invalidate];
[myTimer release];
}
// Now that we know myTimer doesn't point to a timer already..
myTimer = [NSTimer scheduledTimerWithTimeInterval:aTimeInterval target:self selector:@selector(echoIt:) userInfo:myDict repeats:YES];
[myTimer retain];
}
-(IBAction)cancelIt:(id) sender {
[myTimer invalidate];
[myTimer release]; // This timer is now gone, and you won't reuse it.
}
So, my goal is to use 1 start button and 1 cancel button.. and just do their actions. I have set up a the start button to start both timers, obviously both start their countdown at the same time which is not good.
I want to tell one timer to start and if I press cancel, invalidate it. Then If I press start again, call the second timer. (I do this because I read that you can't reuse a timer after you invalidate it).
Some people have suggested to use Booleans like true or false, or conditions. What do you think?
What if after pressing the start button, you create a timer and start it. Then pressing the cancel button invalidates and releases it. Then pressing the start button would create another timer, using the same pointer.
Totally untested and probably broken code below, but should demonstrate the idea:
-(IBAction)startButton:(id) sender {
// myTimer is declared in header file ...
if (myTimer!=nil) { // if the pointer already points to a timer, you don't want to create a second one without stoping and destroying the first
[myTimer invalidate];
[myTimer release];
}
// Now that we know myTimer doesn't point to a timer already..
myTimer = [NSTimer scheduledTimerWithTimeInterval:aTimeInterval target:self selector:@selector(echoIt:) userInfo:myDict repeats:YES];
[myTimer retain];
}
-(IBAction)cancelIt:(id) sender {
[myTimer invalidate];
[myTimer release]; // This timer is now gone, and you won't reuse it.
}
Corndog5595
Nov 14, 08:49 PM
The campaign is great, and you really get attached to the characters.
I don't know what you're all talking about.
I don't know what you're all talking about.
zombitronic
Oct 6, 11:00 AM
It was a good message until they stated "Before you pick a phone, pick a network." That would be valid in an iPhone-less world. They would still be selling us phones based on a spinning CGI rendering of a phone's outer shell. "Look! A plastic candy bar! You like candy, don't you? Then you'll love our rectangular phone! Brand new features like rounded edges and three colors!"
Apple changed the game. The device should now be the focus. The service should be an afterthought in the background.
Apple changed the game. The device should now be the focus. The service should be an afterthought in the background.

maclaptop
Apr 16, 10:56 PM
And different browsers didn't appear for a long while I thought.
True. This is due to Apples desire to confine users to Safari.
Their dictatorial approach worked for quite some time. Finally user push back was too much, and Apple caved.
True. This is due to Apples desire to confine users to Safari.
Their dictatorial approach worked for quite some time. Finally user push back was too much, and Apple caved.
more...

doctoree
Apr 15, 02:55 PM
Agreed.
Lol, every of your line has a different vanishing point! The text is actually correct. Meeting a single, center VP.
Lol, every of your line has a different vanishing point! The text is actually correct. Meeting a single, center VP.
Swift
Jan 6, 09:23 AM
Don't you guys have that problem over there in the States? Maybe it is because I'm in the EU? It really sucks, I guarantee..
Well, there are some benefits to being in California where the event is happening. Fewer servers in the way, and the Akamai relays they put in must be awesomely fat in LA. But I think higher def overwhelmed the live feed entirely. Even Google couldn't pay for it.
:(
Well, there are some benefits to being in California where the event is happening. Fewer servers in the way, and the Akamai relays they put in must be awesomely fat in LA. But I think higher def overwhelmed the live feed entirely. Even Google couldn't pay for it.
:(
more...
Evangelion
Nov 17, 11:28 AM
I think I just threw up in my mouth a little bit�.
Why? Even though Intel is faster right now, AMD still makes fine chips.
Why? Even though Intel is faster right now, AMD still makes fine chips.
David G.
Jan 11, 07:19 PM
Ban. Them. Now.
more...

Abstract
Jan 12, 08:10 AM
If it's an iPod first then why's it got such ****** capacity? Why's it called the iPhone? Seriously, are you a genuine music producer that's happy to walk around with just 8 gigs worth of music?
I don't carry around a 400 gig seagate hard drive - I carry around a 60 gig iPod because it does a great job.
And I have an iPod Nano 4 GB because it does a great job, while remaining small and thin. If you were expecting an HDD based phone from Apple, you're crazy. They wouldn't want to make such a fat phone, and I wouldn't want one. Fact is that an mp3 player with 8 GB capacity is on the high end in todays market.

Lady GaGa#39;s tattoos
more...

The other tattoo, on her

Lady Gaga Tattoo
more...

lady gaga tattoos. lady gaga

Lady GaGa shows off the
more...

lady gaga tattoos.

Lady Gaga#39;s new tattoo
more...

Lady Gaga stepped out last

lady gaga tattoos on back.

Lady Gaga#39;s tattoo
I don't carry around a 400 gig seagate hard drive - I carry around a 60 gig iPod because it does a great job.
And I have an iPod Nano 4 GB because it does a great job, while remaining small and thin. If you were expecting an HDD based phone from Apple, you're crazy. They wouldn't want to make such a fat phone, and I wouldn't want one. Fact is that an mp3 player with 8 GB capacity is on the high end in todays market.
roadbloc
Mar 16, 04:16 AM
The entire industry is one big Apple "fanboi", bud. What Apple does, everyone else moves to copy or get it on. My "bubble" is the entire tech industry where it concerns the average user.
What's "silly" is the Apple fansite bubble. Apple fansites on the ass-end of the net with their loveable little geek contingent perpetually out of touch with the actual market.
Step into 2011. It's all about Apple and where they're taking the industry.
This is nonsence. If the average user was interested in just Apple, then why are Apple on a lesser market share for pretty much... everything but MP3 players? How come Android is proving more popular?
I've said this before, and I'll say it again. THIS IS NOT AN APPLE FANSITE! Please go elsewhere if you wish to praise the mighty Apple endlessly. This site is for news and discussion based around Apple products. Not for fans to blow their load.
I'm in 2011. And I'm seeing Android beat iOS in the mobile world, and slowly creeping up in the tablet world. I'm seeing OS X being turned from a pretty advanced OS to an App riddled toy. I'm seeing Apple discontinue server services. I'm seeing Apple making silly mistakes such as clock bugs and adding social networks to media players. I'm seeing Apple still not improve MobileMe.
What's "silly" is the Apple fansite bubble. Apple fansites on the ass-end of the net with their loveable little geek contingent perpetually out of touch with the actual market.
Step into 2011. It's all about Apple and where they're taking the industry.
This is nonsence. If the average user was interested in just Apple, then why are Apple on a lesser market share for pretty much... everything but MP3 players? How come Android is proving more popular?
I've said this before, and I'll say it again. THIS IS NOT AN APPLE FANSITE! Please go elsewhere if you wish to praise the mighty Apple endlessly. This site is for news and discussion based around Apple products. Not for fans to blow their load.
I'm in 2011. And I'm seeing Android beat iOS in the mobile world, and slowly creeping up in the tablet world. I'm seeing OS X being turned from a pretty advanced OS to an App riddled toy. I'm seeing Apple discontinue server services. I'm seeing Apple making silly mistakes such as clock bugs and adding social networks to media players. I'm seeing Apple still not improve MobileMe.
more...
kiljoy616
Jul 22, 11:59 PM
Annoyed by Apple? I'm sure Apple is annoyed by all the people who are saying that Apple doesn't know how to make phones, especially when the problem they're getting flak from is also reproduced on other phones just as easilly, but no other companies are getting **** on by the public and media for also having this issue? Why is it ONLY Apple that gets dumped on?
Because we love Apple and just use Nokia phones, who cares about BlackBerry, except when someone with a patent almost shut them down completely in America. In the end Apple with ONE ONLY PHONE MODEL IS DOING INCREDIBLE, who can say the same?
Iphone 4 is not perfect but it sweet that for sure! :D
Because we love Apple and just use Nokia phones, who cares about BlackBerry, except when someone with a patent almost shut them down completely in America. In the end Apple with ONE ONLY PHONE MODEL IS DOING INCREDIBLE, who can say the same?
Iphone 4 is not perfect but it sweet that for sure! :D
aliensporebomb
Apr 25, 11:50 AM
Curiouser and curiouser.
If it's a fake, whoever did it did a pretty interesting job on it.
It looks plausible.
I mean we had:
iphone 3g
iphone 3gs
why not
iphone 4
iphone 4gs
Which would give incentive for people to go for the white one I guess.
then the 5 comes out later?
If it's a fake, whoever did it did a pretty interesting job on it.
It looks plausible.
I mean we had:
iphone 3g
iphone 3gs
why not
iphone 4
iphone 4gs
Which would give incentive for people to go for the white one I guess.
then the 5 comes out later?
more...

brianus
Oct 17, 01:45 PM
I was always under the impression that if you wanted to save something for that long your best bet would be to use some kind of tape archival system.
Tape!?! :confused: who on earth uses tape anymore? This is.. 2006. And I was always under the impression that a medium with moving parts would be more prone to failure than one without. Certainly my VHS and cassette library have had their share of tapes being chewed up by the machine or worn out from use.
I've always thought external hard drives would work fine, especially now that you can make SATA connections externally. You work from the external drive, when you're done you take it with you, no need to wait to burn. As far as backing up goes, that's just going to take a long time no matter which way you do it (unless it's like that Time Machine stuff, which is always going on, and uses a hard drive), and for me, I'd rather back up a whole drive at a time, which would require more space than a disc would provide.
External drives are *not* long term archiving solutions. They are useful for storing vast amounts of data that presumably you want to actually access and use (and possibly modify) on a regular basis; also, they are good for the kind of incremental backups you refer to, Time Machine, Retrospect, other 3rd party backup tools can be used for this. But if you have important files you know aren't going to change, while having them on HDD is useful for instant access, that's not where they should be permanently archived -- they should be burned to a permanent medium, preferably more than one copy, and stored in a safe place (or places). If your drive fails and you still need the data to be on that drive, you can then restore from the permanent medium.
Tape!?! :confused: who on earth uses tape anymore? This is.. 2006. And I was always under the impression that a medium with moving parts would be more prone to failure than one without. Certainly my VHS and cassette library have had their share of tapes being chewed up by the machine or worn out from use.
I've always thought external hard drives would work fine, especially now that you can make SATA connections externally. You work from the external drive, when you're done you take it with you, no need to wait to burn. As far as backing up goes, that's just going to take a long time no matter which way you do it (unless it's like that Time Machine stuff, which is always going on, and uses a hard drive), and for me, I'd rather back up a whole drive at a time, which would require more space than a disc would provide.
External drives are *not* long term archiving solutions. They are useful for storing vast amounts of data that presumably you want to actually access and use (and possibly modify) on a regular basis; also, they are good for the kind of incremental backups you refer to, Time Machine, Retrospect, other 3rd party backup tools can be used for this. But if you have important files you know aren't going to change, while having them on HDD is useful for instant access, that's not where they should be permanently archived -- they should be burned to a permanent medium, preferably more than one copy, and stored in a safe place (or places). If your drive fails and you still need the data to be on that drive, you can then restore from the permanent medium.
slughead
Oct 28, 06:09 PM
The thin veneer is off the vast majority of people that clamor for OSS.
Whenever I hear the OSS crowd scream "Software should be FREE!" I translate that to mean "I refuse to pay someone for their work, thus I will STEAL it"!
I don't blame Apple. The OSS community abused what they had and turned to piracy by stealing the GUI. Kudos Apple.
I don't think there are many out there who think all software should be free. I think these OSS advocates just want as much free stuff as possible, for many reasons.
People want OSS because it spurs innovation. Keep in mind that OS X is built on OSS, and that's one of the reasons it's more secure and more powerful than windows.
That's not to mention the fact that Apple has taken OS X from infancy to the mature OS that it is today at a record pace. This is, in no small part, due to the FREE code they're "stealing."
Apple doesn't sell operating systems for profit, they sell HARDWARE. These people over at OSx86 are trying to create a product that doesn't really exist: OS X on BIOS hardware.
Whenever I hear the OSS crowd scream "Software should be FREE!" I translate that to mean "I refuse to pay someone for their work, thus I will STEAL it"!
I don't blame Apple. The OSS community abused what they had and turned to piracy by stealing the GUI. Kudos Apple.
I don't think there are many out there who think all software should be free. I think these OSS advocates just want as much free stuff as possible, for many reasons.
People want OSS because it spurs innovation. Keep in mind that OS X is built on OSS, and that's one of the reasons it's more secure and more powerful than windows.
That's not to mention the fact that Apple has taken OS X from infancy to the mature OS that it is today at a record pace. This is, in no small part, due to the FREE code they're "stealing."
Apple doesn't sell operating systems for profit, they sell HARDWARE. These people over at OSx86 are trying to create a product that doesn't really exist: OS X on BIOS hardware.
more...
buckers
May 1, 05:27 PM
So, how about this build, eh? :rolleyes:
jettredmont
Sep 25, 07:40 PM
All except for a few itsy bitsy tiny details.
A: Apple didn't create the event, It is a photography event put on by someone else.
Not to mention, it is a photography event that happens once every two years, which means this is Aperture's first time available during Photokina!
A: Apple didn't create the event, It is a photography event put on by someone else.
Not to mention, it is a photography event that happens once every two years, which means this is Aperture's first time available during Photokina!
more...
Chundles
Sep 12, 08:21 AM
yeah, the iTunes videos are definitely referencing movies I'd say. I mean we all know it was happening. The surprise is the non-disney titles, since we'd all assumed that that would be all Jobs was able to pull. But then again I don't see why studios would sign up with Amazon video, relatively unproven in digital content delivery, without signing up with iTMS, a very much proven system. I'm sure that's a huge part of Jobs negotiations, not ever once asking for anything exclusive. (That would be what his disney connections might be able to get him). If they're worried about being locked in to the iTMS, then they're free to allow whoever they want to to sell their stuff. The pricing scheme right now as rumored is at least two tiered, one for new releases and one for old, so yes, Mr. Movie Studio, you can make more money off your hot newest thing.
The links from that iTunes Videos thing DO NOT point to any movies. They point to iPod versions of movie trailers. It's just a consolidation of the current content.
But saying that doesn't matter because people aren't reading the thread.
The links from that iTunes Videos thing DO NOT point to any movies. They point to iPod versions of movie trailers. It's just a consolidation of the current content.
But saying that doesn't matter because people aren't reading the thread.
Bevz
Apr 15, 08:37 PM
Probably a fake, but i like the design anyway...
KnightWRX
Mar 7, 04:42 AM
Also, because of the tight competition, companies are afraid to take risks. Remember when the USB por had just been introduced? This was a real chicken and egg situation for PC makers. No PC maker wants to be the first to switch to all USB ports because (a) it will cost more money to put the new ports into the board, and (b) they know it will annoy customers who will have to buy all peripherals. Customers will simply buy the competing brand because it's cheaper. Now, someone eventually sells a PC with both USB and PS/2 ports so you can slowly start the upgrade trend, but it's slow for all the above reasons.
Same for the floppy drive: nobody wants to be the first to ship without one. It would be seen as being "too different" and cause lost sales to the competition.
Preserving backwards compatibility has nothing to do with taking risks. It's just plain nice and doesn't hurt forward compatibility. Motherboards, to this day, still have PS/2 ports. Does it hurt anybody ? No. But that guy with his keyboard from 1995 he just loves and takes care of is pretty happy.
Same with the floppy drive. Apple removed it from the iMac because it would "hurt" the design. PCs didn't remove it because frankly, what are you going to do with those 3 1/2" holes in the case anyhow ? And while manufacturers did finally stop shipping them, guess what is on motherboards these days ? FDD connector headers. Yep, still there and ready to read all those little Sony invented disks, or even those big ass 5 1/4" really floppies. Does it hurt anyone ? No, it's a 0.01$ part.
Windows 98 did more for USB adoption than the limited run Apple had with its original iMac. Common sense removed floppy drives a lot more than Apple forced it with the iMac, and a lot later too.
Some of you need to open up your boundaries a little beyond what Apple does.
Same for the floppy drive: nobody wants to be the first to ship without one. It would be seen as being "too different" and cause lost sales to the competition.
Preserving backwards compatibility has nothing to do with taking risks. It's just plain nice and doesn't hurt forward compatibility. Motherboards, to this day, still have PS/2 ports. Does it hurt anybody ? No. But that guy with his keyboard from 1995 he just loves and takes care of is pretty happy.
Same with the floppy drive. Apple removed it from the iMac because it would "hurt" the design. PCs didn't remove it because frankly, what are you going to do with those 3 1/2" holes in the case anyhow ? And while manufacturers did finally stop shipping them, guess what is on motherboards these days ? FDD connector headers. Yep, still there and ready to read all those little Sony invented disks, or even those big ass 5 1/4" really floppies. Does it hurt anyone ? No, it's a 0.01$ part.
Windows 98 did more for USB adoption than the limited run Apple had with its original iMac. Common sense removed floppy drives a lot more than Apple forced it with the iMac, and a lot later too.
Some of you need to open up your boundaries a little beyond what Apple does.
tonyvz
Nov 24, 07:54 AM
I got mine last Back Friday and it was discounted.. so maybe.
AirPort Express Base Station
save $41.00
$129.00
$88.00
AirPort Express Base Station
save $41.00
$129.00
$88.00
lbartley
Apr 4, 02:27 PM
it seem's like you are getting the run around from MS cause they want you to buy another 360 to make them more money. this looks bad on MS part in not doing anything in helping to track down the stolen 360. i thought that is why the unique ID was given to each system just for that case. and the fact they are using the live account, they can also be buying games with it which is like stealing your credit card.
That's a horribly selfish view of the situation. Would you really want MS to give out personally identifiable information about a customer to any Joe Crazyface that calls in?
You need to look at this from their perspective as well. I'm sure the prospect of $50 profit is pretty minor when weighed against the idea of giving personal information on a customer to some guy who just called in. Even if they wanted to, you're not going to get it from the standard customer service department, especially not after their recent "hacking".
That's a horribly selfish view of the situation. Would you really want MS to give out personally identifiable information about a customer to any Joe Crazyface that calls in?
You need to look at this from their perspective as well. I'm sure the prospect of $50 profit is pretty minor when weighed against the idea of giving personal information on a customer to some guy who just called in. Even if they wanted to, you're not going to get it from the standard customer service department, especially not after their recent "hacking".
ABG
Apr 7, 03:04 PM
Just collected this...
ericmacuser
Apr 25, 01:08 PM
Looks a lot like this knock-off just posted to DX
http://www.dealextreme.com/p/3-5-touch-screen-dual-sim-dual-network-standby-quadband-gsm-cell-phone-w-wi-fi-white-70906
http://www.dealextreme.com/p/3-5-touch-screen-dual-sim-dual-network-standby-quadband-gsm-cell-phone-w-wi-fi-white-70906
Aeolius
Oct 14, 10:17 AM
...it's time to move forward and discover the "future" that we all used to dream about. Floating cars, modern structures...

No comments:
Post a Comment