• 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
Delegation across thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delegation across thread


  • Subject: Delegation across thread
  • From: Andre Masse <email@hidden>
  • Date: Thu, 30 Oct 2008 13:52:37 -0400

Hi,

I'm currently developing an "in house" application which serves as a front end to a PostgreSQL database. There will be only 4 users at maximum peak, so this is a fairly small load for the database. At this point, I'm using notifications to inform a particular form when a query result is ready to process. Since each form has its own connection (a cocoa wrapper class to libpq) I'm wondering if using delegation would be a better idea. Now, I may move the querying stuff to its own thread at some point (when I get more familiar to the cocoa way).

I've read the net on how to implement a delegate in a custom class and it works when in the same thread but, is delegation working in a threading environment? In other words, can I call a delegate method from another thread?

Thanks and sorry if its sound basic, I feel very n00b here even though I've been programming (part time) in various languages since 1988 :-)

Andre Masse
_______________________________________________

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


  • Follow-Ups:
    • Re: Delegation across thread
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: Type comparison warning
  • Next by Date: Re: Customizing controls: Inheritance bad?
  • Previous by thread: Re: NSOperationQueue broken?
  • Next by thread: Re: Delegation across thread
  • Index(es):
    • Date
    • Thread