• 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
NSPopupButton and content values binding transformer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopupButton and content values binding transformer


  • Subject: NSPopupButton and content values binding transformer
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 25 Oct 2013 10:58:50 +0100

Value transformers applied to NSPopupButton have some idiosyncrasies.
http://stackoverflow.com/questions/12505764/nspopupbutton-bindings-with-value-transformer

I have applied a transformer to an NSPopupButton content values binding but the IB configured transformer does not seem to be applied.
I am not alone in this: http://macscripter.net/viewtopic.php?id=39496

If I log the binding the transformer is present.
However, if I enter an invalid transformer name the app does not raise (which it should).
If I then log the binding with the invalid name then it does raise.

Popup button bindings: {
    NSObservedKeyPath = "arrangedObjects.name";
    NSObservedObject = "<NSArrayController: 0xa5f7750>[object class: Data_PeriodType, number of selected objects: 1]";
    NSOptions =     {
        NSContentPlacementTag = 0;
        NSInsertsNullPlaceholder = 0;
        NSMultipleValuesPlaceholder = "<null>";
        NSNoSelectionPlaceholder = "<null>";
        NSNotApplicablePlaceholder = "<null>";
        NSNullPlaceholder = "No Value";
        NSRaisesForNotApplicableKeys = 1;
        NSValueTransformer = "<PeriodTypeTransformer: 0x213c070>";
        NSValueTransformerName = PeriodTypeTransformer;
    };
}

Jonathan











_______________________________________________

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: NSPopupButton and content values binding transformer
      • From: "email@hidden" <email@hidden>
  • Prev by Date: [SOLVED] Re: Spotlight importer don't work anymore under Mavericks (sandbox error)
  • Next by Date: Re: operatingSystemVersionString replacement
  • Previous by thread: Re: operatingSystemVersionString replacement
  • Next by thread: Re: NSPopupButton and content values binding transformer
  • Index(es):
    • Date
    • Thread