Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSValueTransformer used with table colulms



On 25.03.2004, at 18:41, mmalcolm crawford wrote:

On Mar 25, 2004, at 2:12 AM, Mike Thorpe wrote:

When it runs I get garbage in the column for non-zero values. It seems as if the NSTableView still thinks it's an NSNumber instead of an NSString.

Do you have a formatter or something else attached to the column?

Malcolm, could you kindly explain if and how one can use formatters
with bindings in place ?

For example, I have an NSTextField (non-editable) where I'd like
to format the contents in a way that NSNumberFormatter already supplies.

I don't want to use ValueTransformers for this because
ValueTransformers can not easily be customized, AFAIK I have
to register a different instance for each slight change in formatting.
Especially for Numbers and Dates I like to use what is available in IB.

Is it possible at all ?

Thanks a lot, Bjoern
_______________________________________________
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.


References: 
 >NSValueTransformer used with table colulms (From: Mike Thorpe <email@hidden>)
 >Re: NSValueTransformer used with table colulms (From: mmalcolm crawford <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.