Re: NSValueTransformer - Object Reference
Re: NSValueTransformer - Object Reference
- Subject: Re: NSValueTransformer - Object Reference
- From: Jonathan Younger <email@hidden>
- Date: Sat, 17 Jul 2004 00:56:43 -0700
For a clearer picture of what I'm trying to accomplish think of doing
the iTunes Smart Playlist or iPhoto Smart Album interface using Cocoa
Bindings.
-Jonathan
On Jul 17, 2004, at 12:10 AM, Jonathan Younger wrote:
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.
_______________________________________________
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.