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 12:55:12 +0100
On 1 dec 2005, at 12.39, Andrea Salomoni wrote:
Yes I know it.
But the proble is that my variable is an Outlet....
No matter, the principle is the same.
How can I give a value to an Outlet?
Like you would any other variable, but like I said, you would usually
do it via nib loading.
If this sounds difficult or strange, I would suggest that you check
out a couple of simple sample projects where you can play around /
experiment with how nib loading is intended to work.
I know an Outlet is a variable... but which is the reason why in
the main thread the outlet exist and in secondary thread not?
That is not really a valid question, because data are shared between
threads.
My guess is that you're looking at different objects. One of them
have the outlet, and the other object don't. If you had been looking
at the same object, you would not have seen different "states" for
this outlet.
Test this:
NSLog(@"self: %@, outlet: %@", self, 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