performSelector: withObject: afterDelay help for noob please
performSelector: withObject: afterDelay help for noob please
- Subject: performSelector: withObject: afterDelay help for noob please
- From: Papa-Raboon <email@hidden>
- Date: Wed, 2 Jul 2008 15:09:53 +0100
Hi There,
I have been scratching my head and trying everything to get this to
work and as a noob I find the docs a bit sparse of real world
examples.
I am trying to get performSelector: withObject: afterDelay to work but
not sure what to stick where.
I have a bit of static text I set with a value of: @"record Added"
with the following: [complete setStringValue:@"Record added"]; and I
want it to disappear after 3 seconds and I thought the easiest way
would be to just change the value to: @"" with a timer.
Currently I have this: [self setStringValue:complete withObject:@""
afterDelay:3.0];
Which doesn't seem to work and has the following warning:
'mainController' may not respond to '-setStringValue:withObject:afterDelay:'
What am I doing wrong please and what should my code really be?
Cheers
Paul
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden