• 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
Programmatically setting a binding with an NSValueTransformer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically setting a binding with an NSValueTransformer


  • Subject: Programmatically setting a binding with an NSValueTransformer
  • From: Norm Hecht <email@hidden>
  • Date: Tue, 11 Dec 2007 15:00:29 -0700

I have a CoreData app with an NSTableView, and I want the user to be able to
add and delete the columns (from a given list). I've been able to programmatically
recreate all of the columns and their bindings except the ones that use a custom
NSValueTransformer and NSPopUpButtonCell. My questions are


1) How do I bind the value transformer? I haven't been able to figure out how
from the documentation or examples on the web.


2) How do I control the appearance of the popUpButtonCell? The initial version
(that I get from setting things up in IB) uses the style from IB's Cocoa-Data
palette, but the programmatic version comes back with one looking like the
one in the Cocoa-Controls palette. It looks clunky inside a table view.


I'm using XCode 2.4.1 and IB 2.5.4 on OS X 10.4.11.

Thanks,

Norm Hecht _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Programmatically setting a binding with an NSValueTransformer
      • From: Bill Garrison <email@hidden>
    • Re: Programmatically setting a binding with an NSValueTransformer
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
  • Next by Date: Re: Making sure my code will run on Tiger 10.4 when I'm compiling on Leopard 10.5.
  • Previous by thread: Re: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
  • Next by thread: Re: Programmatically setting a binding with an NSValueTransformer
  • Index(es):
    • Date
    • Thread