• 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
Exposing Methods in a Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exposing Methods in a Framework


  • Subject: Exposing Methods in a Framework
  • From: David Alter <email@hidden>
  • Date: Tue, 30 May 2006 15:55:42 -0700

I have a framework that other developers will use. In it I want to expose specific methods but not necessary all the instance variables and methods. I was looking for the preferred way of doing this with obj-c. I was planning on using a sub class and having the subclass .h in my framework header folder.

For example here are two classes. The class ForEveryoneToSee does not expose my instance variables. My framework would have this in the headers folder. It would not have the .h for ForMeToSee. Is this the preferred way of doing this? It seams like there should be a cleaner way to do this.

@interface ForEveryoneToSee : NSObject {

}
-(NSString *)		 myData;
-(void)			setMyData(NSString * )inData;

@end


@interface ForMeToSee : ForEveryoneToSee { NSString * _myData; } -(NSString *) myData; -(void) setMyData(NSString * )inData;

@end


thanks for the help.

-dave

_______________________________________________
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: Exposing Methods in a Framework
      • From: HÃ¥kan Waara <email@hidden>
    • Re: Exposing Methods in a Framework
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Drawing an NSAttributedString into an NSRect
  • Next by Date: Re: Re: Drawing an NSAttributedString into an NSRect
  • Previous by thread: NSPopUpButton and bindings for images
  • Next by thread: Re: Exposing Methods in a Framework
  • Index(es):
    • Date
    • Thread