• 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
binding options help please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: binding options help please
      • From: Max Barel <email@hidden>
  • Prev by Date: Re: NSSocketPort and NSFileHandle as simple network architecture
  • Next by Date: Re: how to receive a Cocoa drag in a Carbon app using regular Drag Manager?
  • Previous by thread: Re: NSSocketPort and NSFileHandle as simple network architecture
  • Next by thread: Re: binding options help please
  • Index(es):
    • Date
    • Thread