Re: Access instance var from NSValueTransformer
Re: Access instance var from NSValueTransformer
- Subject: Re: Access instance var from NSValueTransformer
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 15 Nov 2004 16:31:58 -0800
On Nov 15, 2004, at 2:42 PM, Todd Freese wrote:
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?
I think so. *If* I follow correctly, then, you could simply create a
subclass of NSArrayController that has an ivar for the document. Then
override -newObject:
- (id)newObject
{
id newObject = [super newObject];
// configure newObject
// we have access to the document in here now...
return newObject;
}
Does that make sense? Does it fit in with the design?
mmalc
_______________________________________________
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