• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A simple question about nsthread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: A simple question about nsthread
      • From: Andrea Salomoni <email@hidden>
References: 
 >A simple question about nsthread (From: Andrea Salomoni <email@hidden>)
 >Re: A simple question about nsthread (From: j o a r <email@hidden>)
 >Re: A simple question about nsthread (From: Andrea Salomoni <email@hidden>)
 >Re: A simple question about nsthread (From: j o a r <email@hidden>)
 >Re: A simple question about nsthread (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: A simple question about nsthread
  • Next by Date: NSTableView Restoring State
  • Previous by thread: Re: A simple question about nsthread
  • Next by thread: Re: A simple question about nsthread
  • Index(es):
    • Date
    • Thread