• 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 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
References: 
 >A simple question about nsthread (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: A simple question about nsthread
  • Next by Date: problem passing a list to an AppleScript function
  • Previous by thread: A simple question about nsthread
  • Next by thread: Re: A simple question about nsthread
  • Index(es):
    • Date
    • Thread