• 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
NSValueTransformer - Object Reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSValueTransformer - Object Reference


  • Subject: NSValueTransformer - Object Reference
  • From: Jonathan Younger <email@hidden>
  • Date: Sat, 17 Jul 2004 00:10:58 -0700

Is there anyway to get a reference to the object that the value transformer is bound to when the "- (id)transformedValue:(id)aValue" and "- (id)reverseTransformedValue:(id)aValue;" methods are called?

I'm trying to emulate something similar to a NSTableColumn using the arrangedObjects from an NSArrayController. I have an array of custom views where each view corresponds to a record in the array controller and I want the controls in the custom view to be bound like what can be done with binding a NSTableColumn.

For example with a NSTableView I could bind column 1 to arrangedObjects.someProperty and column 2 to arrangedObjects.someOtherProperty in an NSArrayController.
When the table view displays each record in the NSArrayController the NSTableColumns display the proper values for each record.

I'd like to do something similar and bind an NSTextField to arrangedObjects.someProperty and a different NSTextField to arrangedObjects.someOtherProperty in my custom view. When my custom views are displayed each view would display the proper record from the NSArrayController that the controls are bound to.


Thanks,

Jonathan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSValueTransformer - Object Reference
      • From: "b.bum" <email@hidden>
    • Re: NSValueTransformer - Object Reference
      • From: Jonathan Younger <email@hidden>
  • Prev by Date: KVC-compliance using -respondsToSelector:
  • Next by Date: Re: NSValueTransformer - Object Reference
  • Previous by thread: Re: KVC-compliance using -respondsToSelector:
  • Next by thread: Re: NSValueTransformer - Object Reference
  • Index(es):
    • Date
    • Thread