• 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: Simple Interface Connection Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Interface Connection Question


  • Subject: Re: Simple Interface Connection Question
  • From: "I. Savant" <email@hidden>
  • Date: Fri, 27 Apr 2007 10:28:41 -0400

On 4/27/07, hac <email@hidden> wrote:
Thanks Kirk. :) I'm pretty sure that's what I need, but I'm still
stuck. I have a document based app where each document needs to be
able to add to one central log window. Does anyone know how I can make
the connection required for this? I've been fine with Ist Responder
for now, but it only works with actions, and the log text will vary...
Could someone please point me in the right direction?

The simplest solution would be to create an app delegate and wire it up. Create an outlet to a "LogController" and connect it. Then you can say:

  [[NSApp myLogController] logThis:someString];

  ... from anywhere in your app (including documents).

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Re: Simple Interface Connection Question (From: hac <email@hidden>)

  • Prev by Date: Re: KVO observeValueForKeyPath, not reflecting changes
  • Next by Date: Re: Predicate in IB
  • Previous by thread: Re: Simple Interface Connection Question
  • Next by thread: Apple Remote UIs - stop Energy Saver settings from dimming/sleep?
  • Index(es):
    • Date
    • Thread