Re: Access instance var from NSValueTransformer
Re: Access instance var from NSValueTransformer
- Subject: Re: Access instance var from NSValueTransformer
- From: Todd Freese <email@hidden>
- Date: Mon, 15 Nov 2004 16:42:33 -0600
> I'm sorry if I wasn't clear, or if we're talking at crossed purposes...
>
> My suggestion was to implement these accessors in the MyDocument class.
I think I need to give you more information to understand my issue. Here is
my Class layout:
@interface MyDocument : NSDocument
{
IBOutlet NSObjectController *dataController;
IBOutlet NSArrayController *headerController;
IBOutlet NSArrayController *eventController;
IBOutlet NSTableView *tableView;
IBOutlet NSWindow *window;
NSMutableArray *headers;
NSString *eventTimeCodeBase;
NSNumber *eventTimeCodeIsNonDrop;
}
@interface Header : NSObject {
NSString *fieldDelim;
NSString *audioFormat;
NSString *tape;
NSString *fps;
NSString *videoFormat;
NSString *filmFormat;
NSMutableArray *events; // Reference related Event objects.
}
@interface Event : NSObject {
NSMutableDictionary *event; // Store event TC fields
}
@interface TimeCodeNumber : NSObject <NSCopying> {
NSString *tcDisplayString;
NSNumber *tcInFrames;
NSNumber *nonDrop;
NSString *base;
}
I have an NSArrayController for Headers and for Events. When the
NSArrayController for Events creates a new TimeCodenNumber to put into the
event NSMutableDictionary, how does it get eventTimeCodeBase from
MyDocument?
Does this help?
Todd
_______________________________________________
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