• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
second pass with bindingoptions....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: second pass with bindingoptions....
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: spreadsheet editor
  • Next by Date: Re: New ML List Software
  • Previous by thread: Re: NSPopAutoreleasePool
  • Next by thread: Re: second pass with bindingoptions....
  • Index(es):
    • Date
    • Thread