Skip navigation.
 
mlnewbie : cocoa bindings - dot separated key path question
FROM : joe OneNinetyTwo
DATE : Mon Aug 14 23:51:30 2006

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

Related mailsAuthorDate
mlTwo NSPopUpButtonCells Binding Question Kam Dahin Aug 14, 22:16
mlnewbie : cocoa bindings - dot separated key path question joe OneNinetyTwo Aug 14, 23:51
mlRe: newbie : cocoa bindings - dot separated key path question Matt Neuburg Aug 16, 18:51
mlRe: newbie : cocoa bindings - dot separated key path question joe OneNinetyTwo Aug 17, 02:34