Nekbeth
Apr 26, 10:29 PM
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.
}
Update *** "I though it worked but the timer kept going on the background.
crashed :confused:
wlh99, do you get an exception in the invalid method " [myTimer Invalidate]" ?
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.
}
Update *** "I though it worked but the timer kept going on the background.
crashed :confused:
wlh99, do you get an exception in the invalid method " [myTimer Invalidate]" ?
ct-scan
Oct 3, 01:09 PM
iPhone will come out before X'mas.
Xmas 2007 maybe :rolleyes:
Xmas 2007 maybe :rolleyes:
Sedulous
May 3, 05:15 PM
I don't really get this... You already pay fees for the data - why do they care for how you use it?
I have been wondering the same thing. How can providers dictate how data is utilized by a customer? The data block is bough and paid for, the phone does the routing, so then how is an additional fee justified?
I have been wondering the same thing. How can providers dictate how data is utilized by a customer? The data block is bough and paid for, the phone does the routing, so then how is an additional fee justified?
Haol
Apr 29, 04:51 PM
I can't believe there are over 60 comments actually commenting the post !
I mean, sure. Cool that Apple listens, and nice to see they are looking into the look and feel. But hey, can't imagine a more minor change :D
I mean, sure. Cool that Apple listens, and nice to see they are looking into the look and feel. But hey, can't imagine a more minor change :D
more...
AP_piano295
Apr 25, 03:35 PM
You expect employees who make minimum wage to break up a fight? They should call the cops, but for sure not break up a fight.
Your damn right I do, I've kicked people out of stores before for being rude to employees, shouting at each other, behaving inappropriately and refusing to respond to reasonable requests.
If people started fighting in my place of work i would absolutely get involved, probably starting with dumping a bucket of mop water over them.
I've broke up a fight between 14 and 15 years old siblings while I was teaching a ski lesson. And I wouldn't have hesitated if it had been two 20 year olds.
When did we become so bloody apathetic and wimpy that were afraid of breaking up a fight between a group of girls. As far as I'm concerned I could give a damn about trans gender or not.
If you work somewhere you have a position of authority and that makes it your job to protect all people in your store, sack up and diffuse the situation.
Your damn right I do, I've kicked people out of stores before for being rude to employees, shouting at each other, behaving inappropriately and refusing to respond to reasonable requests.
If people started fighting in my place of work i would absolutely get involved, probably starting with dumping a bucket of mop water over them.
I've broke up a fight between 14 and 15 years old siblings while I was teaching a ski lesson. And I wouldn't have hesitated if it had been two 20 year olds.
When did we become so bloody apathetic and wimpy that were afraid of breaking up a fight between a group of girls. As far as I'm concerned I could give a damn about trans gender or not.
If you work somewhere you have a position of authority and that makes it your job to protect all people in your store, sack up and diffuse the situation.
MacRumors
Apr 25, 11:44 AM
http://www.macrumors.com/images/macrumorsthreadlogo.gif (http://www.macrumors.com/2011/04/25/photo-of-iphone-4s-with-larger-screen/)
http://images.macrumors.com/article/2011/04/25/123044-ee164ce60334b6df3bb8-LL.jpg
more...
Cheryl Cole shows a new tattoo
Cheryl Cole shows off another new tattoo, sprawling from her lower back all the way down
more...
Cheryl Cole Hopes New Tattoo
Cheryl Cole shows off her
more...
NEW TATTOO: Cheryl Cole
Cheryl Cole the Outside the
more...
cheryl cole 2011 hot. cone
Cheryl Cole#39;s representative
more...
Simon Cowell #39;blames Cheryl
The tattoo on Cheryl Cole#39;s
more...
Ashley Cole#39;s Women: Ann
http://images.macrumors.com/article/2011/04/25/123044-ee164ce60334b6df3bb8-LL.jpg
more...
pondosinatra
Jul 21, 09:44 AM
"Apple - our products suck just as much as everyone else's" :rolleyes:
Patrick J
Apr 16, 02:56 PM
You can see that the iPhone text is not aligned in this pic.
more...
TrulyYuki
Apr 6, 01:43 PM
for the wife
http://farm6.static.flickr.com/5069/5593508856_f7ddb60cb8_b.jpg
good job. Smart man. i know my future hubby will be just as brilliant. He's even waited in line with me on launch day for an iphone 4. And did not complain when we didn't get one.
http://farm6.static.flickr.com/5069/5593508856_f7ddb60cb8_b.jpg
good job. Smart man. i know my future hubby will be just as brilliant. He's even waited in line with me on launch day for an iphone 4. And did not complain when we didn't get one.
lilcosco08
Mar 18, 07:07 PM
Today I've had some pretty interesting exchanges with other smart phone owners. I personally have an iPhone 4, I've had it for ages and love it. Pretty much everyone else I know has an Android phone of some kind. Now, people are always so damn keen to try and compete with my iPhone! I mean seriously, these people just come out of nowhere! I don't even show it off either, people just see me use it and start coming out with stuff.
For instance, one guy comes out with - "Oh so you have an iPhone 4, my HTC Desire is way better". When we ran some comparisons he was obliterated but refused to accept it lol. All I got was, "well you paid �500 for an overpaid Apple product that you need a case to use". Personally I've never had any antenna problems so anyway, moving on.
Another guy comes out with "You don't have a removable battery so if your phone crashes then you're screwed". Anyone here had their iPhone crash? If yes were you unable to get it sorted at an Apple store? This explanation didn't bode well with said Apple hater. :p
Some one else came out with "iPhone 4 is a brick". At first I thought he was joking but he soon turned serious, saying that the phone literally is shaped like a brick and has sharp edges which hurt your hand.
Another guy claimed that iPhones are awful because they don't have flash. To be honest, I don't really care for flash. The only thing I need flash for is Youtube which has its own app, and most shopping sites have their own dedicated apps anyway. Flash is a resource hog that would kill the battery. This of course was nonsense to the nexus owner.
I could go on but the shots people took just kept getting cheaper and cheaper, most reverting to "well you paid �500 for a phone, you must be crazy". I don't understand this. It seems that most people feel some kind of envy to me because I own an iPhone 4. Its pretty sad, at the end of the day its just a phone. But people actually seem to hate Apple because they can't afford their products. Most of them admitted that had the iPhone been cheaper they'd buy one, hence they can't afford it so they are bitter.
Anyone else experienced this? I get similar problems when people see my Macbook Pro lol.
they jelly
For instance, one guy comes out with - "Oh so you have an iPhone 4, my HTC Desire is way better". When we ran some comparisons he was obliterated but refused to accept it lol. All I got was, "well you paid �500 for an overpaid Apple product that you need a case to use". Personally I've never had any antenna problems so anyway, moving on.
Another guy comes out with "You don't have a removable battery so if your phone crashes then you're screwed". Anyone here had their iPhone crash? If yes were you unable to get it sorted at an Apple store? This explanation didn't bode well with said Apple hater. :p
Some one else came out with "iPhone 4 is a brick". At first I thought he was joking but he soon turned serious, saying that the phone literally is shaped like a brick and has sharp edges which hurt your hand.
Another guy claimed that iPhones are awful because they don't have flash. To be honest, I don't really care for flash. The only thing I need flash for is Youtube which has its own app, and most shopping sites have their own dedicated apps anyway. Flash is a resource hog that would kill the battery. This of course was nonsense to the nexus owner.
I could go on but the shots people took just kept getting cheaper and cheaper, most reverting to "well you paid �500 for a phone, you must be crazy". I don't understand this. It seems that most people feel some kind of envy to me because I own an iPhone 4. Its pretty sad, at the end of the day its just a phone. But people actually seem to hate Apple because they can't afford their products. Most of them admitted that had the iPhone been cheaper they'd buy one, hence they can't afford it so they are bitter.
Anyone else experienced this? I get similar problems when people see my Macbook Pro lol.
they jelly
more...
scottsjack
Mar 28, 05:52 PM
Seriously Apple, how soon until the app store is the only way to install apps on your mac?
If it's going to happen I hope it's soon. Photoshop CS5.5/6.0 will be out soon and I need to decide which platform will be my main one. It could go either way over the long term. My copy of PS CS3 for Windows will have to be updated to the next release in order to maintain upgrade privileges for Windows.
If it's going to happen I hope it's soon. Photoshop CS5.5/6.0 will be out soon and I need to decide which platform will be my main one. It could go either way over the long term. My copy of PS CS3 for Windows will have to be updated to the next release in order to maintain upgrade privileges for Windows.
CaoCao
Apr 18, 08:30 AM
Any basic history textbook will include basic information about a person. Left handedness often is mentioned, so is deafness, blindness and other physical differences. Homosexuality isn't in the same league, now is it?
Why do so many people have a difficult time acknowledging the unique contributions of gay people?
Have you heard of Wounded Knee? This country has a horrible problem in dealing with minorities an those on the right seem most interested in suppressing anyone who doesn't fit into their narrow and erroneous interpretation of American demographics.
It's very, very sad.
Left handed people have always been persecuted and represent a significantly larger portion of society than homosexuals, plus they tend to do well in society regardless of the persecution.
Why do so many people have a difficult time acknowledging the unique contributions of gay people?
Have you heard of Wounded Knee? This country has a horrible problem in dealing with minorities an those on the right seem most interested in suppressing anyone who doesn't fit into their narrow and erroneous interpretation of American demographics.
It's very, very sad.
Left handed people have always been persecuted and represent a significantly larger portion of society than homosexuals, plus they tend to do well in society regardless of the persecution.
more...
OdduWon
Oct 11, 03:37 AM
this is the new wireless protable speaker set from apple. isound. use new wirless ipod cinema, or through dock wireless adapter for 5g ipods and gen 2 nanos , to control the speakers while you move about freely with no wires attatched. isound bringing your music to you with out limits.
http://i82.photobucket.com/albums/j248/jonathaniliff/isound.jpg
http://i82.photobucket.com/albums/j248/jonathaniliff/isound.jpg
Patrick J
Apr 15, 03:59 PM
This would be popular with suicides (cut throat sharp edges) and PC users (device has numerous huge holes which may or not have a function).
more...
l3lack J4ck
Nov 24, 05:41 AM
well then i'll go back to sleep...
figuring you only save 1 dollar more on a macbook than you would w/ just an educational discount..i'll get it tomorrow...
oh btw..a hint...if you go to an apple store and buy a giftcard for the amount you need online...then you can use the gift card..get free shipping...plus get your 100 bucks off on a macbook w/ educatoinal discount and have no tax...
so you really end up saving 200 bucks....thats what im doing just a heads up
figuring you only save 1 dollar more on a macbook than you would w/ just an educational discount..i'll get it tomorrow...
oh btw..a hint...if you go to an apple store and buy a giftcard for the amount you need online...then you can use the gift card..get free shipping...plus get your 100 bucks off on a macbook w/ educatoinal discount and have no tax...
so you really end up saving 200 bucks....thats what im doing just a heads up
sleepingworker
Apr 9, 01:39 AM
That was painful to watch. Sort of like Jack Ass: The Geek Edition. Of course they should be banned. Gizmodo was interfering with companies trying to present their products.
more...
MacRumors
Apr 29, 01:08 PM
http://www.macrumors.com/images/macrumorsthreadlogo.gif (http://www.macrumors.com/2011/04/29/apple-seeds-new-version-of-mac-os-x-lion-11a444d-to-developers/)
http://images.macrumors.com/article/2011/04/29/140328-lion.jpg
Ink fan: Cheryl showed off her
cheryl-cole-behind-the-scenes-
http://images.macrumors.com/article/2011/04/29/140328-lion.jpg
ct2k7
Apr 24, 01:54 PM
I am looking forward to the demise of the optical drive.
It was sad to see Norio Ohga pass away.
It was sad to see Norio Ohga pass away.
flopticalcube
Nov 27, 05:48 PM
Sale Day MB 2/120 now shipping! :)
Shipment exception. :(
C'est la vie.
Shipment exception. :(
C'est la vie.
Shannighan
Jan 15, 03:19 PM
Three new toys to own (MacBook Air, :apple:tv 2, and Time Capsule) plus an update for my existing toy - iPhone.
Count me as pleased.
Now hopefully an MBP refresh will happen next Tuesday.
whats next tuesday?
@signalfile
i think theres little to no market for the cinema displays (except for people who are all things apple with alot of money)
they are way behind in LCD tech (still 700:1 contrast ratio)
no iSight (no big deal, but expected)
insanely expencive! $900 for a 23" CD or $550 for a 24" samsung with a higher contrast ratio, more features? etc.
there should atlease have been a price drop
OMG THEY MOVED THE ITUNES BUTTON ON THE IPHONE! WTF! IM GOING TO BE SO CONFUSED NOW!
Count me as pleased.
Now hopefully an MBP refresh will happen next Tuesday.
whats next tuesday?
@signalfile
i think theres little to no market for the cinema displays (except for people who are all things apple with alot of money)
they are way behind in LCD tech (still 700:1 contrast ratio)
no iSight (no big deal, but expected)
insanely expencive! $900 for a 23" CD or $550 for a 24" samsung with a higher contrast ratio, more features? etc.
there should atlease have been a price drop
OMG THEY MOVED THE ITUNES BUTTON ON THE IPHONE! WTF! IM GOING TO BE SO CONFUSED NOW!
Thomas2006
Oct 3, 01:32 PM
The Intel powered Macs and iLife got the lion's share of the MWSF2006 keynote and iWork only got a few slides showing improvements to Keynote and Pages got so I am hoping iWork (new spreadsheet app and a very improved Pages) gets some good airtime at MWSF2007.
someguy
Sep 12, 07:21 AM
Will we be able to watch this event live? How will coverage (if there will be any) be brought to us?
LEStudios
Oct 6, 10:14 PM
Wait, you mean that grass on the other side isn't actually greener it's just painted green?!?!?! ;)
Welcome to the real world! :D
Welcome to the real world! :D
citizenzen
Apr 15, 03:13 PM
From the article ...
After passage in the Democratic-controlled Assembly and singing by Gov. Jerry Brown, both of which seem likely, California would become the first state to make curricula include notable gay Americans along with the contributions of women and various ethnic groups.
Shaun Travers, a San Diego activist, told San Diego 6: "It's very important that we represent all of California and that includes the LGBT community. Our people and our history."
But opponents said the move would add non-essential material to already-short instruction time.
Hmmm ... they don't seem to share that same concern when it comes to teaching Creationism in science class. :rolleyes:
After passage in the Democratic-controlled Assembly and singing by Gov. Jerry Brown, both of which seem likely, California would become the first state to make curricula include notable gay Americans along with the contributions of women and various ethnic groups.
Shaun Travers, a San Diego activist, told San Diego 6: "It's very important that we represent all of California and that includes the LGBT community. Our people and our history."
But opponents said the move would add non-essential material to already-short instruction time.
Hmmm ... they don't seem to share that same concern when it comes to teaching Creationism in science class. :rolleyes:
No comments:
Post a Comment