Re: A simple question about nsthread
Re: A simple question about nsthread
- Subject: Re: A simple question about nsthread
- From: j o a r <email@hidden>
- Date: Thu, 1 Dec 2005 09:50:59 +0100
On 1 dec 2005, at 09.40, Andrea Salomoni wrote:
theClass * myObject = [[theClass alloc]init];
What's this? Is "theClass" the name of the class? You should always
name classes with a leading capital letter!
And if it is the name of the class, you're effectively loosing the
reference to the newly created variable "myObject".
If you have an instance variable called "myObject", didn't you get a
warning about this?
Before launching the thread, verify that (nil != myObject)!
The problem is that the thread starts and all works fine, but the
GUI isn't affected by performSelectorOnMainThread: method.
Before calling back to the main thread, verify that (nil !=
myTextField)!
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden