• 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
IBOutlet and Shared Instances
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IBOutlet and Shared Instances


  • Subject: IBOutlet and Shared Instances
  • From: Juan Alvarez <email@hidden>
  • Date: Tue, 6 Dec 2005 14:10:19 -0500

Hi,
I've been trying to access an IBOutlet from a shared instance I have created but it doesnt work. Can someone tell what I need to do here:

+ (id)sharedInstance
{
static MyClass *_myclass = nil;

if (! _myclass) {
_myclass = [[MyClass allocWithZone:[self zone]] init];
}
return _myclass;
}

Is it possible to get access to the shared instance's IBOutlet? Basically I want access to the NSArrayController that MyClass is connected to. Thanks!
_______________________________________________
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: IBOutlet and Shared Instances
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: NSTimer problem with event run loop
  • Next by Date: NSTableView drag and drop Border
  • Previous by thread: Re: NSTimer problem with event run loop
  • Next by thread: Re: IBOutlet and Shared Instances
  • Index(es):
    • Date
    • Thread