newbie : cocoa bindings - dot separated key path question
newbie : cocoa bindings - dot separated key path question
- Subject: newbie : cocoa bindings - dot separated key path question
- From: joe OneNinetyTwo <email@hidden>
- Date: Mon, 14 Aug 2006 14:51:30 -0700 (PDT)
I have a model object called DataSet in MyDocument
class that is a composite of two NSMutable arrays
@interface DataSet : NSObject {
NSMutableArray *data;
NSMutableArray *dimensions;
}
The data array holds Datum objects
@interface Datum : NSObject {
float real;
float imaginary;
}
and the dimensions array holds dimension objects
@interface Dimension : NSObject <NSCoding, NSCopying>
{
unsigned npts;
double dwellTime;
double initialTime;
double centerFrequency;
}
I've created two TableViews in the window in
MyDocument.nib, one for data and one for dimensions.
I have two NSArrayControllers in the nib called
DataController and DimensionsController. Can I bind
my model objects to the controllers using dot
separated key paths like dimension.npts and
datum.real, or am I going about this all wrong.
I originally had the two arrays data and dimensions
inside MyDocument, and everything (tableview and
bindings) was working fine. It's only after I put
them inside the DataSet Object that I'm having
problems geting it working again.
Thanks,
Philip
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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