|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
@interface Frac : NSObject <NSCoding> {
double vTurn;
double vSquash;
NSDocument* Doc;
}
-(void)Draw : (CGContextRef)Ref;
-(double)Turn;
-(void)setTurn :(double) t;
-(double)Squash;
-(void)setSquash :(double) sq;
1) I've made it use NSCoding
2) It has accessor methods in case I ever want to script my app, or if I want to make it undoable.
3) It has a reference to it's document (with which to access NSUndoManager I think?)
| References: | |
| >Re: Simplifying this code? (From: "Theodore H. Smith" <email@hidden>) | |
| >Re: Simplifying this code? (From: Shawn Erickson <email@hidden>) | |
| >Re: Simplifying this code? (From: "Theodore H. Smith" <email@hidden>) | |
| >Re: Simplifying this code? (From: Shawn Erickson <email@hidden>) | |
| >A good model header? (From: "Theodore H. Smith" <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.