Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Timer Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timer Problems



On Sunday, February 23, 2003, at 10:23  am, Edward Gladwyn wrote:

But when I compile PB says "Invalid use of Void Expression". What's
wrong?!

"[self changeDateTextField]" is a method call, not a selector. Go re-read the Obj-C language guide :-)


What you really want is

NSTimer *everySecond = [NSTimer timerWithTimeInterval:1 target:self selector:@selector(changeDateTextField) userInfo:nil repeats:YES];

 -- Finlay
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.

References: 
 >Timer Problems (From: Edward Gladwyn <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.