second pass with bindingoptions....
second pass with bindingoptions....
- Subject: second pass with bindingoptions....
- From: Theodore Petrosky <email@hidden>
- Date: Mon, 13 Sep 2004 07:38:49 -0700 (PDT)
ok here is what I have..
I created a binding source
newStatuses = [[NSMutableArray alloc] init];
NSMutableDictionary *row1 = [[NSMutableDictionary
alloc] init];
[row1 setValue:@"Open (Working)" forKey:@"title"];
NSMutableDictionary *row2 = [[NSMutableDictionary
alloc] init];
[row2 setValue:@"On Hold" forKey:@"title"];
[newStatuses addObject:row1];
[newStatuses addObject:row2];//there are more rows
here...
Then I use 'newStatuses'
- (NSArray *)statuses {//array with statuses
return newStatuses;
}
and bind
[ejsPopUpController bind:@"contentArray" toObject:self
withKeyPath:@"statuses" options:nil];
everything is beautiful to here..
[ejsMainArrayController bind:@"contentArray" toObject:
self withKeyPath:@"editingJobArray" options:nil];
[ejsStatusPopUp bind:@"content" toObject:
ejsPopUpController withKeyPath:@"arrangedObjects"
options:nil];//statusTransformBinding
[ejsStatusPopUp bind:@"contentValues"
toObject:ejsPopUpController
withKeyPath:@"arrangedObjects.title" options:nil];
[ejsStatusPopUp bind:@"selectedObject"
toObject:ejsMainArrayController
withKeyPath:@"selection.jobStatus"
options:statusTransformBinding];
statusTransformBinding has a reverseTransformedValue
and allowsReverseTransformation returns yes.
here is my error when I change the popup
*** -[NSCFDictionary isEqualToString:]: selector not
recognized
Where am I going wrong?
Thanks,
Ted
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool
_______________________________________________
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