binding options help please
binding options help please
- Subject: binding options help please
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 13 Oct 2004 12:25:02 -0700 (PDT)
I have finally got my bindings work fairly well.... I
have a tableView with a bound array. some of the
columns have popupbuttons. I am struggling with
getting the 'title' of the button.
As I am storing the data in an external database, I
want the 'title' of the popup button. I seem to be
getting an instance of the contentValues. So I created
a ValueTransformer that returns a string class. But I
think I am still missing something.
It appears to be working except for one little detail.
When I click on the popupbutton, I want to see two
entries ( entry1, entry2 ) but I see three. I see
entry1, entry2, and <NPJobType 0x35f440>
Where is this listing of the class coming from. What
Am I missing in my understading?
I can supply that classes I am using to feed this
table. But I feel this must be a problem with the
transformer.
it is returning an NSString class
-(id)transformedValue:(id)aString {
NSJobType *newObject = [[[NSJobType alloc] init]
autorelease];
[newObject setJobType:aString];
return newObject;
}
reversedTransformedValue:(id)value {
return [value jobType];
}
Any help (on or off list) would be appreciated.
Ted
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
_______________________________________________
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