FROM : Theodore Petrosky
DATE : Wed Oct 13 21:25:02 2004
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
DATE : Wed Oct 13 21:25:02 2004
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
| Related mails | Author | Date |
|---|---|---|
| Theodore Petrosky | Oct 13, 21:25 | |
| Max Barel | Oct 14, 02:05 | |
| Theodore Petrosky | Oct 14, 13:47 |






Cocoa mail archive

