• 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
Global Access Controls ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Global Access Controls ?


  • Subject: Global Access Controls ?
  • From: Chad Eckles <email@hidden>
  • Date: Thu, 24 Apr 2003 17:06:40 -0700

Hello I have a control that i want to define only onece and i want to be
able to use it in other classes without having to redefine it over an over
an over again how can i do this ?

E.g
I have MyClass with a Defined NSTextField and in MyClass2 i want to be able
to access that NSTextField with out having to redefine it ?

/* MyClass */

#import <Cocoa/Cocoa.h>

@interface MyClass : NSObject
{
IBOutlet NSTextField *txtName;
}
@end

/* MyClass2 */

#import <Cocoa/Cocoa.h>

@interface MyClass2 : NSObject
{
}
-(void)awakeFromNib
{
[txtName setStringValue:@"Helllo"];
}
@end
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Global Access Controls ?
      • From: Greg Hulands <email@hidden>
    • Re: Global Access Controls ?
      • From: Greg Hulands <email@hidden>
  • Prev by Date: NSConnection exceptions
  • Next by Date: Re: Global Access Controls ?
  • Previous by thread: Re: Global Access Controls ?
  • Next by thread: Re: Global Access Controls ?
  • Index(es):
    • Date
    • Thread